(1)我的cuda环境:cuda10.0+cudnn7.4.1.5
(2)使用的python环境:pycharm + python3.6
(3)安装的tensorflow-gpu版本:tensorflow-gpu1.13.1
(4)报错信息:from tensorflow.python import pywrap_tensorflow失败
(5)解决方案:
在E:\Python3.6\Scripts路径下使用cmd命令pip安装了tensorflow-gpu1.13.1之后,
再用cmd命令pip安装相同版本的tensorflow1.13.1:
pip install tensorflow-gpu==1.13.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install tensorflow==1.13.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/
(6)结果,报错信息消失