我以前的类似问题无法解决我的问题。我沿着python 3.6,cuda 10和cudnn 7.4.2安装了tensorflow-gpu 2.0.0。现在根据此页面,它们是兼容的并且已经过测试:
https://www.tensorflow.org/install/source_windows#tested_build_configurations
导入时,这是返回的错误:
>>> import tensorflow
2020-02-05 15:17:43.900905: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\p6\lib\site-packages\tensorflow\__init__.py", line 98, in <module>
from tensorflow_core import *
File "C:\p6\lib\site-packages\tensorflow_core\__init__.py", line 40, in <module>
from tensorflow.python.tools import module_util as _module_util
File "C:\p6\lib\site-packages\tensorflow\__init__.py", line 50, in __getattr__
module = self._load()
File "C:\p6\lib\site-packages\tensorflow\__init__.py", line 44, in _load
module = _importlib.import_module(self.__name__)
File "C:\p6\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\p6\lib\site-packages\tensorflow_core\python\__init__.py", line 52, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "C:\p6\lib\site-packages\tensorflow_core\core\framework\graph_pb2.py", line 7, in <module>
from google.protobuf import descriptor as _descriptor
File "C:\p6\lib\site-packages\google\protobuf\descriptor.py", line 47, in <module>
from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.
我已经尝试过重新安装所有这些。我也检查过,并且PATH也已添加到环境变量中。在最新版本的python,tensorflow-gpu,cuda,cudnn上也得到了这些错误。
有人可以帮我吗?
Windows中存在Tensorflow安装问题的4个可能原因