环境:Ubuntu18.0.4 X86_64
Anaconda X86_64
tensorflow-gpu=1.12.0
第一步:下载Anaconda X86_64版本到你指定的路径下
1 | $ wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh # 64位系统
2 | $ wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86.sh # 32位系统
使用bash指令进行anaconda安装:
$ bash Anaconda3-4.2.0-Linux-x86_64.sh
一直yes回车就OK。
安装完成后使用指令查看安装结果:
conda info
第二步:在anaconda下新建环境
使用指令进行创建自己的环境并指定python版本
conda create -n your_env_name python=3.6
使用指令进入刚创建的环境下进行tensorflow安装:
source activate your_env_name
第三步:为了提高安装速度可以提前将国内的镜像进行添加:
# 清华镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/f