本来我单独安装了torch,是最新版本,1.8.0,去官网找了一圈,找不到对应版本的torchversion,所以没办法安装。
于是在cmd命令行里使用命令:
pip uninstall torch 卸载torch。
再使用命令:
pip install torch==1.7.1 torchvision==0.8.2 -f https://download.pytorch.org/whl/torch_stable.html
进行安装即可。
本来我单独安装了torch,是最新版本,1.8.0,去官网找了一圈,找不到对应版本的torchversion,所以没办法安装。
于是在cmd命令行里使用命令:
pip uninstall torch 卸载torch。
再使用命令:
pip install torch==1.7.1 torchvision==0.8.2 -f https://download.pytorch.org/whl/torch_stable.html
进行安装即可。