无法将张量流导入项目

时间:2019-03-14 17:14:19

标签: python tensorflow pycharm

我想在python项目中使用tensorflow。

这是我项目中唯一的代码。

import tensorflow as tf

我收到了此错误消息。

Traceback (most recent call last):
  File "C:/Users/Alexa/PycharmProjects/tensorFlow/main.py", line 1, in <module>
    import tensorflow as tf 
  File "C:\Users\Alexa\PycharmProjects\tensorFlow\venv\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\Alexa\PycharmProjects\tensorFlow\venv\lib\site-packages\tensorflow\python\__init__.py", line 52, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "C:\Users\Alexa\PycharmProjects\tensorFlow\venv\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
  File "C:\Users\Alexa\PycharmProjects\tensorFlow\venv\lib\site-packages\google\protobuf\descriptor.py", line 47, in <module>
    from google.protobuf.pyext import _message
ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.

我在PyCharm的Virtualenv中使用PyCharm和Python 3.6。 我该如何解决并运行tensorflow?

0 个答案:

没有答案