I am trying to install several dependencies for a python project from a requirements.txt file.
When it encounters the "torch" dependency, it claims to be unable to find version 1.3.1 -- but only on my Mac and not on Ubuntu, which is puzzling. (using a different version like 1.4 is not an option for this project, unfortunately)
On my Mac:
➜ code mkdir test_proj
➜ code cd test_proj
➜ test_proj mkvirtualenv $(basename $(pwd))
created virtual environment CPython3.8.5.final.0-64 in 304ms
creator CPython3Posix(dest=/Users/aeb/.virtualenvs/test_proj, clear=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/aeb/Library/Application Support/virtualenv)
added seed packages: pip==20.2.2, setuptools==49.6.0, wheel==0.35.1
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
virtualenvwrapper.user_scripts creating /Users/aeb/.virtualenvs/test_proj/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/aeb/.virtualenvs/test_proj/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/aeb/.virtualenvs/test_proj/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/aeb/.virtualenvs/test_proj/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/aeb/.virtualenvs/test_proj/bin/get_env_details
(test_proj) ➜ test_proj which python
/Users/aeb/.virtualenvs/test_proj/bin/python
(test_proj) ➜ test_proj which pip
/Users/aeb/.virtualenvs/test_proj/bin/pip
(test_proj) ➜ test_proj pip install torch==1.3.1
ERROR: Could not find a version that satisfies the requirement torch==1.3.1 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.4.0, 1.5.0, 1.5.1, 1.6.0)
ERROR: No matching distribution found for torch==1.3.1
(test_proj) ➜ test_proj
Interestingly, within an Ubuntu VM, there is no issue with the same pip install command:
user@devbox-vm2:~$ pip3 install torch==1.3.1
Collecting torch==1.3.1
Using cached https://files.pythonhosted.org/packages/88/95/90e8c4c31cfc67248bf944ba42029295b77159982f532c5689bcfe4e9108/torch-1.3.1-cp36-cp36m-manylinux1_x86_64.whl
Does anyone know why the mac version of pip is having trouble finding this specific version of PyTorch, but Ubuntu is not having the same problem and completes successfully?
Perhaps more to the point, is there a way to "point" the Mac version of pip to the same package file that the Ubuntu VM is using, since that seems to be working (or an analogous modification I can make to the requirements.txt file so that it works on Mac, and not just on Ubuntu)?
Many thanks!