centos7.5 安装Anaconda与TensorFlow-GPU并处理错误
发布时间
阅读量:
阅读量
第一次在Linux下装GPU版本的TensorFlow,踩坑,折腾了2天、记录一下。
一、linux 下安装anaconda3
1、wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.1-Linux-x86_64.sh 对应(python 3.7.x)
2、安装依赖:yum install -y bzip2
3、 bash Anaconda3-5.3.1-Linux-x86_64.sh
在安装过程中,基本上不断按回车或者yes默认就行了。
最后一步询问是否安装vscode,输入no,毕竟在服务器里面都是用vim编辑器的,没必要多装一个。
如果你想装Python3.6.x或者其他版本的,去 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive下找对应的版本,把路径改一下就好了。
3、配置环境变量
安装完成后,我们需要对环境变量进行添加,方便我们启动。
修改profile文件
vim /etc/profile
在文件的末尾加上下述代码:
#Anaconda
export PATH=/root/anaconda3/bin:$PATH # 这
全部评论 (0)
还没有任何评论哟~
