tensorflow报错

在python3.5.2(Anaconda3-4.2.0)中安装tensorflow时,若安装的tensorflow是1.6.0版本,当在python交互环境下 import tensorflow as tf 时就会报下面的错误,而如果安装的是1.5.0版本,就不会有错。

pip install tensorflow==1.5.0


tensorflow报错



如果用pip install  tensorflow  安装时速度太慢  可以选择国内镜像

豆瓣:http://pypi.douban.com/simple/

清华:https://pypi.tuna.tsinghua.edu.cn/simple

例如: 

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow  


若要同时更新的话:


pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow