我爱编程程序员

Centos下安装Anaconda及tensorflow

2016-11-29  本文已影响0人  嗯我是一个胖子

Anaconda安装

conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
conda config --set show_channel_urls yes

Tensorflow安装

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
import tensorflow as tf
hello=tf.constant('hello,Tensorflow')
sess=tf.Session()
print sess.run(hello)
--输出 hello,Tensorflow表明成功--
source deactivate

Jupyter安装

source activate tensorflow
conda install ipython
conda install -n tensorflow -y jupyter 
jupyter notebook --ip 9.*.*.* --port 8888
上一篇下一篇

猜你喜欢

热点阅读