Ubuntu1404+anconda2+python2.7 Tensorflow1.0安装

来源:互联网 发布:淘宝服务站加盟 编辑:程序博客网 时间:2024/05/22 15:17

anconda2安装:
下载地址:https://www.continuum.io/downloads
如下图所示:


安装完anaconda后,需要将Anaconda的bin路径添加到PAHT环境变量中,在命令行中输入如下命令:
export PATH=/home/wei/anaconda2/bin:$PATH
到此anconda2安装完成.

安装Tensorflow
1. Create a conda environment called tensorflow:

conda create -n tensorflow python=2.7


2. Activate the environment and use pip to install TensorFlow inside it.

source activate tensorflow


3. Install tensorflow1.0

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-cp27-none-linux_x86_64.whl

测试

python>>>import tensorflow as tf

0 0