安装ubuntu系统
从ubuntu官网下载iso。
使用UltralSO制作U盘系统盘。
在电脑开启时进入bios,设置u盘启动,保存启动。
安装系统
设置软件与更新中的源为阿里云。
安装显卡驱动
前面按照这篇文章的步骤 https://blog.csdn.net/JOKER_Or/article/details/80333253
执行到安装显卡驱动以后,挂载Nvidia驱动:modprobe nvidia
再次出现错误:Error! Bad return status for module build on kernel: 4.15.0-36-generic (x86_64)
解决方法:将gcc g++改为原来的版本
检查是否成功:
nvidia-smi
gcc降级
https://blog.csdn.net/qq_33160790/article/details/80464473
安装cuda cudnn anaconda tensorflow
注意版本 https://blog.csdn.net/lifuxian1994/article/details/81103530
安装步骤 https://blog.csdn.net/JOKER_Or/article/details/80333253
tensorflow bug
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
解决方法:https://blog.csdn.net/sinat_28750977/article/details/80118327
FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
解决方法:https://blog.csdn.net/qq_41185868/article/details/80276847
安装pytorch
conda install pytorch torchvision -c pytorch