SoFunction
Updated on 2024-12-20

Installation tutorial for pytorch and torchvision CPU version under window10

1. Environment

python3.5

Anaconda 4.2.0

2, pytorch installation

pip3 install /whl/cpu/torch-1.1.0-cp35-cp35m-win_amd64.whl -i /

3. torchvision installation

pip3 install /whl/cpu/torchvision-0.3.0-cp35-cp35m-win_amd64.whl

Note: Directly pip3 install torchvision, even if successfully installed, but import torchvision will report an error when importing:

Online solutions: (1) lower Pillow version, i.e. Pillow==4.1.1; (2) conda install -c peterjc123 vc vs2017_runtime

Tried both and neither worked, not sure if it's because it's the cpu version that runs pytorch, but installing from this link worked:

/whl/cpu/torchvision-0.3.0-cp35-cp35m-win_amd64.whl

4. Verification

This is the whole content of this article.