On MacOSX Monterey 12.1. Running python 3.6.13 (64 bit version) on a conda environment, with pip 24.0. I need to download torch 1.14 and torchvision 0.5.0 to run some packages but am getting errors no matter what I try.
I first tried installing directly via pip like so:
pip install pytorch==1.4.0 pip install torchvision==0.5.0
and got:
ERROR: Could not find a version that satisfies the requirement pytorch==1.4.0 (from versions: 0.1.2, 1.0.2) ERROR: No matching distribution found for pytorch==1.4.0 ERROR: Ignored the following yanked versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.15.0 ERROR: Could not find a version that satisfies the requirement torchvision==0.5.0 (from versions: 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.17.0, 0.17.1, 0.17.2) ERROR: No matching distribution found for torchvision==0.5.0
Then tried via stable URL:
pip install torch==1.4.0 torchvision==0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
which returns:
ERROR: Could not find a version that satisfies the requirement torch==1.4.0 (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2) ERROR: No matching distribution found for torch==1.4.0
I have also tried the command given on the previous PyTorch versions website:
conda install pytorch==1.4.0 torchvision==0.5.0 -c pytorch
which gives me:
`PackagesNotFoundError: The following packages are not available from current channels:
- torchvision==0.5.0`
I also tried downloading the wheel files directly and then installing them via pip. Downloading the wheel files via curl works, but when I try to install them via pip like so:
pip install torch-1.4.0-cp36-cp36m-macosx_10_9_x86_64.whl pip install torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl
I get:
ERROR: torch-1.4.0-cp36-cp36m-macosx_10_9_x86_64.whl is not a supported wheel on this platform. ERROR: torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl is not a supported wheel on this platform.
I’ve followed all the steps in this post and verified that I have a 64-bit version of python and a 64-bit Mac processor.
I’ve switched between conda 3.6, 3.7, 3.8 environments and all seem to have the same issue. Would appreciate some insight.
user25460097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.