Pytorch、torchvision重新安装:
访问Pytorch的官网https://pytorch.org/,选择需要的版本,在页面的Run this command的栏目中会出现相应的安装命令。
pip3 install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-win_amd64.whl pip3 install torchvision
G:\ProgramData\Anaconda3\Scripts>pip3 install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-win_amd64.whl
Collecting torch==0.4.1 from http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-win_amd64.whl
Downloading http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-win_amd64.whl (55.9MB)
100% |████████████████████████████████| 55.9MB 12.8MB/s
torchvision 0.2.1 requires pillow>=4.1.1, which is not installed.
Installing collected packages: torch
Successfully installed torch-0.4.1
G:\ProgramData\Anaconda3\Scripts>
G:\ProgramData\Anaconda3\Scripts>pip3 install torchvision
Requirement already satisfied: torchvision in