Under window10 pytorch and torchvision CPU version installed

1, environment

python3.5

Anaconda 4.2.0

2, pytorch installation

pip3 install https://download.pytorch.org/whl/cpu/torch-1.1.0-cp35-cp35m-win_amd64.whl -i https://pypi.tuna.tsinghua.edu.cn/

3, torchvision installation

pip3 install https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp35-cp35m-win_amd64.whl

Note: Direct pip3 install torchvision, even if successfully installed, but at the time of import import torchvision will complain:

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

Two approaches were tried, but are invalid, because I do not know whether to run pytorch cpu version is the reason, but install it from this link to be successful:

https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp35-cp35m-win_amd64.whl

4. Verify

 

Guess you like

Origin www.cnblogs.com/guozw/p/11668956.html