我已经在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.
答案 0 :(得分:1)
请将您的 Python Version
从 3.6.0
升级到 3.6.1
,您的问题将得到解决
有关更多信息,请参阅Github Issue 1和Github Issue 2