【一步到位】linuxmint18.3 python3.5安装tensorflow-gpu和anaconda

【一步到位】linuxmint18.3 python3.5安装tensorflow-gpu和anaconda

一、tensorflow-gpu-1.8安装
参考https://blog.csdn.net/aiolia86/article/details/80342240
*主要参考:https://blog.csdn.net/manimnchn/article/details/80635443
参考博客重点:
1、驱动安装,直接在驱动管理面选择384那个就行,应用后重启下,再终端输入nvidia-smi应该能看到就自己电脑的显卡情况;
2、CUDA9.0安装与配置
3、cuDNN7.0安装与配置,但是这个解压的时候记得复制到/usr/local里面解压,因为需要解压到上一步的cuda文件夹。
4、参考博客里面用的anaconda,但是我不用anaconda, 是直接下载pip install tensorflow-gpu==1.8.0的,然后测试代码通过

anaconda下载:
anaconda根据个人喜好看要不要安装:
下载地址:https://repo.continuum.io/archive/index.html
参考博客:https://blog.csdn.net/xiaerwoailuo/article/details/70054429
因为我们装的是python3.5所以下载anaconda3 4.2版本,4.3以后只支持python3.6了。

我是没有安装,需要什么库手动pip,然后pip一下jupyter、ipython等;再结合之前的sublime text3编译器,用起来也很舒服。

+++++++++++++++++++++++++++++++++command+++++++++++++++++++++++++++++++++++
删除:rm -rf 文件或文件夹
加环境变量:gedit /etc/profile
解压:tar -zxvf XXX.tar
运行notebook:jupyter notebook –allow-root
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

猜你喜欢

转载自blog.csdn.net/lglglg850019690/article/details/81676176