我想要安装的版本是 win10+cuda10.0.130+cudnn10+tensorflow1.12
反正目前来说都是最新的。。。
主要是我的显卡驱动版本是416.x,太高了,又不想降。。而且我喜欢用新的东西。
然后各种疯狂报错啊,我的天。
Traceback (most recent call last):
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
pywrap_tensorflow_internal = swig_import_helper()
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Program Files\Anaconda3\lib\importlib\_init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
我把所有tensforflow-gpu的版本下了个遍,发现都会出来这个错。
按照网上说的各种都没用。 什么Microsoft Visual C++ 2015 Redistributable我都安装啦,没用。
一度想放弃。
直到我发现了这篇博客,很关键,感谢作者。
https://blog.csdn.net/weixin_38538282/article/details/84625937
下载了下面两个链接中的tensorflow(一样的,下一个就行):
https://download.csdn.net/download/weixin_38538282/10816219或者翻墙下载:https://1drv.ms/u/s!AspzPyzQ0HQR7VNCicPlnCV2abKJ
然后就成功了!!!
想用新版本的试试这个方法吧。