Reputation: 17193
I need to install an older version of Pytorch, version 1.1, on my Windows 10 x64 machine.
The instructions here tell me to download the wheel and install it. However, pip
refuses to install this wheel, claiming it is not supported on my platform. I suppose that is because, judging by the the name of the wheel (torch-1.1.0-cp37-cp37m-win_amd64.whl
) it is meant for AMD, and I'm on an Intel i7. I found no better matching wheel on the Pytorch site.
What is the easiest way to install Pytorch 1.1 on my machine?
Upvotes: 0
Views: 3751
Reputation: 2874
The current error is most likely because you are running Python 32 Bit, or a different CPython version. The following answer is solving the CPython version error. I couldn't find any 32bit python versions of pytorch.
Before using this solution, make sure you are using 64-bit Python, not OS! You can check this using the following code in command prompt:
>python
>import platform
>platform.architecture()
If it says '64bit', this solution should work. If not, download a 64-bit version of python. Unfortunately, I don't know any other alternative.
There are multiple different Pytorch versions for 1.1.0 if you want to use a GPU or want to be CPU only.
For Cuda 10.0: https://download.pytorch.org/whl/cu100/torch_stable.html
For Cuda 9.0: https://download.pytorch.org/whl/cu90/torch_stable.html
For CPU only: https://download.pytorch.org/whl/cpu/torch_stable.html
Then use ctrl+f
to search for:
torch-1.1.0-cp{CPython version}-cp{CPython version}m-win_AMD64.whl
Replace {Cpython version}
with your python version, for example 37 for 3.7.
Then download that file. Install using:
pip install <path to wheel file>
Upvotes: 1
Reputation: 6115
You can use conda
conda install pytorch=1.1.0
I've checked the exisiting versions with conda search -f pytorch
and 1.1.0
(and many others too) is available.
Upvotes: 2