此篇終結於:虛擬機不能安裝 cuda!
可轉向另一篇:
1.Anaconda安裝
anaconda下載地址使用清華的源:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
首先借用一張老圖說明對應關係 ,當時下了4.3就對應python3.6了,所以一定要認準!!!
可以參考anaconda各版本對應關係:https://blog.csdn.net/huanbia/article/details/83578087
windows系統下.exe安裝步驟一路點下去就可以沒有特別的注意事項。安裝路徑自由選擇
ubuntu系統下.sh文件,參考:https://blog.csdn.net/neo_qiye/article/details/80767523
2.虛擬機+ubuntu16.04安裝+python3.5
使用的是12.0版本的VM workstation+ubuntu16.04安裝包 。鏈接有需要再放。
另外Ubuntu默認python2.7需要更改3.5
可以參考:https://blog.csdn.net/qq_27657429/article/details/53482595
python中pip安裝:https://linux.cn/article-10110-1.html
pip更新:
pip install --upgrade pip
關於更改默認python3.5:https://blog.csdn.net/qq_27657429/article/details/53482595
ubuntu配置也是屬於一鍵配置了,不再贅述。
3.CUDA9.0
安裝參考:https://blog.csdn.net/breeze5428/article/details/78256915/
下載cudnn:https://developer.nvidia.com/rdp/cudnn-archive
驚喜的是:虛擬機不能安裝 cuda!
https://blog.csdn.net/huhuishu/article/details/85415972
所以重來!可暫時參考以下
重做系統:https://blog.csdn.net/flyyufenfei/article/details/79187656
關於Ubuntu系統雙系統切換啓動:https://www.cnblogs.com/weifeng1463/p/7613652.html
ubuntu 16.01LTS 更新清華源:
第一步:打開終端(ctrl+alt+T),備份原有的軟件源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.copy
第二步:打開軟件源配置文件進行編輯
sudo gedit /etc/apt/sources.list
第三步:在網上找到與自己Ubuntu對應的源,將文件內容進行替換,然後保存
網址:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
# 默認註釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消註釋
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# 預發佈軟件源,不建議啓用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
第四步:輸入命令更新源
sudo apt-get update