【pytorch】安装对应版本【torchvision】以及torchvision安装(pytorch 1.0.0 --->torchvision 0.2.2)

ERROR: No matching distribution found for torch>=1.1.0 (from torchvision==0.3.0)

1.代码要求版本1.0,pytorch1.1会报错

ImportError: /usr/local/lib/python3.5/dist-packages/torchvision/_C.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZN2at7getTypeERKNS_6TensorE
2. 安装torch1.0 要对应安装torchvision0.2.0

  1. win下Pytorch安装与torchvision安装踩坑

此篇使用win10 python3.7 torch 1.0.0

pytorch的安装

torchvision的安装直接用pip也会报错,
说找不到相匹配的版本

接下来安装torchvision,版本为0.2.2
在cmd窗口输入:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ torchvision==0.2.2

你可能感兴趣的:(python,pytorch,torchvision,pytorch,python)