Find the true URL even if another env has cached it

This commit is contained in:
Paul Gauthier 2024-07-09 17:03:01 +01:00
parent e307be1a9c
commit fc5737fbd0

View file

@ -30,13 +30,13 @@ def get_requirements():
torch, torch,
"--no-deps", "--no-deps",
"--dry-run", "--dry-run",
# "--no-cache-dir", "--no-cache-dir", # Find the true URL even if another env has cached it
# "--dest",
# temp_dir,
"--index-url", "--index-url",
"https://download.pytorch.org/whl/cpu", "https://download.pytorch.org/whl/cpu",
] ]
# print(' '.join(cmd))
try: try:
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
for line in process.stdout: for line in process.stdout: