Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm trying to get started with Python and Tensorflow 2, but parts of the code does not compile:

(我正在尝试使用Python和Tensorflow 2入门,但是部分代码无法编译:)

Code screenshot

(代码截图)

Then, when I run the app, I get this weird error regarding the import statement:

(然后,当我运行该应用程序时,出现关于import语句的奇怪错误:)

"D:ProgettiPhythonTensorFlow 2 quickstart for beginnersvenvScriptspython.exe" "D:/Progetti/Phython/TensorFlow 2 quickstart for beginners/Test.py"
Traceback (most recent call last):
  File "D:/Progetti/Phython/TensorFlow 2 quickstart for beginners/Test.py", line 5, in <module>
    import tensorflow as tf
  File "D:ProgettiPhythonTensorFlow 2 quickstart for beginnersvenvlibsite-packagesensorflow\__init__.py", line 98, in <module>
    from tensorflow_core import *
  File "D:ProgettiPhythonTensorFlow 2 quickstart for beginnersvenvlibsite-packagesensorflow_core\__init__.py", line 40, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "D:ProgettiPhythonTensorFlow 2 quickstart for beginnersvenvlibsite-packagesensorflow\__init__.py", line 50, in __getattr__
    module = self._load()
  File "D:ProgettiPhythonTensorFlow 2 quickstart for beginnersvenvlibsite-packagesensorflow\__init__.py", line 44, in _load
    module = _importlib.import_module(self.__name__)
  File "C:UsersMarioAppDataLocalProgramsPythonPython36libimportlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "D:ProgettiPhythonTensorFlow 2 quickstart for beginnersvenvlibsite-packagesensorflow_corepython\__init__.py", line 52, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "D:ProgettiPhythonTensorFlow 2 quickstart for beginnersvenvlibsite-packagesensorflow_corecoreframeworkgraph_pb2.py", line 7, in <module>
    from google.protobuf import descriptor as _descriptor
  File "D:ProgettiPhythonTensorFlow 2 quickstart for beginnersvenvlibsite-packagesgoogleprotobufdescriptor.py", line 47, in <module>
    from google.protobuf.pyext import _message
ImportError: DLL load failed: Impossibile trovare la procedura specificata.

Process finished with exit code 1

What is the root of the problem?

(问题的根源是什么?)

  ask by Capitano Giovarco translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
387 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...