conda下安装pytorch
1.去官网下载安装网址:https://pytorch.org/get-started/locally/
2.其他方法安装
- pytorch快速安装【用阿里云源最快】: pip install torch == 1.1.0 torchvision==0.3.0 -i https://mirrors.aliyun.com/pypi/simple/
- conda下pytorch源
选择自己需要的版本下载
使用命令conda install -n your-conda-env-name --use-local your-pkg-name进行安装。
安装torchvision用pip install 安装即可(下对用版本并用源)