Skip to content

Commit d3d53c1

Browse files
committed
fix torch install
1 parent 92991cd commit d3d53c1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

install_requirements.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ def install_requirements(use_pytorch_nightly):
7777
"-r",
7878
"requirements-dev.txt",
7979
*TORCH_PACKAGE,
80-
"--extra-index-url",
80+
"--index-url",
8181
torch_url,
82+
"--pre",
8283
],
8384
check=True,
8485
)
@@ -140,8 +141,9 @@ def install_optional_example_requirements(use_pytorch_nightly):
140141
"pip",
141142
"install",
142143
*DOMAIN_LIBRARIES,
143-
"--extra-index-url",
144+
"--index-url",
144145
torch_url,
146+
"--pre",
145147
],
146148
check=True,
147149
)
@@ -155,8 +157,9 @@ def install_optional_example_requirements(use_pytorch_nightly):
155157
"install",
156158
"-r",
157159
"requirements-examples.txt",
158-
"--extra-index-url",
160+
"--index-url",
159161
torch_url,
162+
"--pre",
160163
"--upgrade-strategy",
161164
"only-if-needed",
162165
],
@@ -166,6 +169,8 @@ def install_optional_example_requirements(use_pytorch_nightly):
166169

167170
def main(args):
168171
parser = argparse.ArgumentParser()
172+
print("NIGHTLY_VERSION: ", NIGHTLY_VERSION)
173+
print("TORCH_VERSION: ", TORCH_VERSION)
169174
parser.add_argument(
170175
"--use-pt-pinned-commit",
171176
action="store_true",

0 commit comments

Comments
 (0)