安裝版本為python3.5,
1.下載anaconda3
????wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-4.2.0-Linux-x86_64.sh
2.增加可運(yùn)行權(quán)限
????chmod +x Anaconda3-4.2.0-Linux-x86_64.sh
3.安裝anaconda3
????3.1執(zhí)行安裝腳本
????????./Anaconda3-4.2.0-Linux-x86_64.sh
????3.2.回車(chē)確定安裝
????????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跳過(guò)說(shuō)明
????3.4輸入yes開(kāi)始安裝
????????Do you approve the license terms? [yes|no]
????????>>> yes
????3.5選擇安裝位置,按回車(chē)
????????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一下環(huán)境變量
????????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
打完收工