Anaconda installation
Official download link to download the corresponding version of Anaconda
cd /home/***/software #进入到软件所在目录
bash Anaconda2-4.2.0-Linux-x86_64.sh
To install all the way to enter, you can
modify the Anaconda update source domestic mirror acceleration (the default foreign connection often fails to report an error)
conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
conda config --set show_channel_urls yes
Close SSH Open a new connection
Tensorflow installation
Create a conda environment
conda create -n tensorflow python=2.7
source activate tensorflow
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
Test whether the installation is successful and enter the python environment
import tensorflow as tf
hello=tf.constant('hello,Tensorflow')
sess=tf.Session()
print sess.run(hello)
– output hello, Tensorflow indicates success –
exit the tensorflow environment
source deactivate
Link: https://www.jianshu.com/p/0c4c195b02fc
Source: Jianshu