可转向另一篇:
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
使用的是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配置也是属于一键配置了,不再赘述。
更详细可参考:https://blog.csdn.net/lly1122334/article/details/97234728
下载地址:https://developer.nvidia.com/cuda-90-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=runfilelocal
安装参考:https://blog.csdn.net/breeze5428/article/details/78256915/
Windows下
下载cudnn:https://developer.nvidia.com/rdp/cudnn-archive
安装完成后在命令提示符中输入nvcc -V
(V大写)验证安装成功
惊喜的是:虚拟机不能安装 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
第一步:打开终端(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
4.Pytorch1.0.1
Pytorch0.4.0暂时参考此博文:https://blog.csdn.net/u014546828/article/details/80334448
以后补.