环境ubuntu 18.10
nvidia Geforce 1080ti
python3.7
cuda10
1. 安装nvidia驱动
选择安装型号:https://www.nvidia.com/Download/driverResults.aspx/145182/en-us
官网:https://www.nvidia.com/Download/index.aspx?lang=cn
wget后
sudo chmod +x cuda****-run
sudo ./cuda****-run
sudo reboot
开机出现错误:started bpfilter, 一直无法进入系统
解决参考:
sudo apt-get install xdm
sudo dpkg-reconfigure lightdm
也删了这个:sudo apt-get remove --purge nvidia-*
2. 安装torch
2.1 conda 安装
失败,官方源太慢,卡住了,清华的源2019.4.16停止服务,转pip安装
image.png
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
查看~/.condarc
channels:
- https: