Skip to content

Commit

Permalink
Pin numpy dep to numpy<2 for windows (#8530)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jul 17, 2024
1 parent 33e47d8 commit 0bf8d14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def write_version_file():
pytorch_dep += "==" + os.getenv("PYTORCH_VERSION")

requirements = [
"numpy",
# TODO: Remove <2 constraint! https://github.com/pytorch/vision/issues/8531
"numpy<2" if sys.platform == "win32" else "numpy",
pytorch_dep,
]

Expand Down

0 comments on commit 0bf8d14

Please sign in to comment.