创建环境
conda create -n py36 python=3.6
删除环境
conda remove -n py36 --all
激活环境
source activate py36
退出环境
source deactivate
安装pytorch(激活后)
- 查看cuda版本
cat /usr/local/cuda/version.txt
- 安装
(python2.7)pip install http://download.pytorch.org/whl/cu80/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
(3.5及以后)
pip install http://download.pytorch.org/whl/cu80/torch-0.4.1-cp35-cp35m-linux_x86_64.whl pip install torchvision
文章来源: https://blog.csdn.net/qq_38235386/article/details/88852123