cuda8.0+cudnn5.1+nvidia384下,安装tensorflow不报错,import tensorflow as tf报错解决办法
在终端输入:
python
import tensorflow as tf
tf.__version__
查询tensorflow安装路径为:
tf.__path__
如果报错将sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu (默认安装tensor flow1.11.0)
改为
sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.2.0成功