Skip to content

Commit 79ddd40

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Pin numpy dep to numpy<2 for windows (#8530)
Reviewed By: vmoens Differential Revision: D60596243 fbshipit-source-id: 83414c1f05b9a83f5091b85ee51a9cd4493dcbd5
1 parent ac99fda commit 79ddd40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def write_version_file():
5858
pytorch_dep += "==" + os.getenv("PYTORCH_VERSION")
5959

6060
requirements = [
61-
"numpy",
61+
# TODO: Remove <2 constraint! https://github.com/pytorch/vision/issues/8531
62+
"numpy<2" if sys.platform == "win32" else "numpy",
6263
pytorch_dep,
6364
]
6465

0 commit comments

Comments
 (0)