安装版本为python3.5,
1.下载anaconda3
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-4.2.0-Linux-x86_64.sh
2.增加可运行权限
chmod +x Anaconda3-4.2.0-Linux-x86_64.sh
3.安装anaconda3
3.1执行安装脚本
./Anaconda3-4.2.0-Linux-x86_64.sh
3.2.回车确定安装
Welcome to Anaconda3 4.2.0 (by Continuum Analytics, Inc.)
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
3.3按q跳过说明
3.4输入yes开始安装
Do you approve the license terms? [yes|no]
>>> yes
3.5选择安装位置,按回车
Anaconda3 will now be installed into this location:
/root/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
3.6输入yes加入PATH
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /root/.bashrc ? [yes|no]
3.7source一下环境变量
source .bashrc
输入
python --version
显示
Python 3.5.2 :: Anaconda 4.2.0 (64-bit)
Anaconda3与Python3.5安装成功
4安装tensorflow
输入:
pip install \
-i https://pypi.tuna.tsinghua.edu.cn/simple/ \
https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/tensorflow-1.4.0-cp35-cp35m-linux_x86_64.whl
打完收工