导入张量流引发ImportError:DLL加载失败

时间:2019-01-13 06:35:32

标签: python tensorflow

我已经在tensorflow中安装了virtualenv并进行了常规系统安装,并将所有必需的目录添加到Path中 我正在使用python 3.6.0 仅安装了tensorflow cpu

import tensorflow as tf

投掷:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\env\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused- 
import
File "C:\env\lib\site-packages\tensorflow\python\__init__.py", line 59, in 
<module>
from tensorflow.core.framework.graph_pb2 import *
File "C:\env\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 
6, in <module>
from google.protobuf import descriptor as _descriptor
File "C:\env\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.

1 个答案:

答案 0 :(得分:1)

请将您的 Python Version 3.6.0 升级到 3.6.1 ,您的问题将得到解决

有关更多信息,请参阅Github Issue 1Github Issue 2