TensorFlow安装,升级,基本操作

一. 安装

ubuntu 16

python 2.7

pip install tensorflow 

测试安装完成效果:

查看tensorFlow版本
python import tensorflow
as tf tf.__version__ 查询tensorflow安装路径为: tf.__path__

二。升级最新版

pip install -U tensorflow 

直接操作报错:

解决方案:

sudo pip install -U -I setuptools
sudo pip install -U tensorflow
原文地址:https://www.cnblogs.com/jokerjason/p/8464432.html