首先安装TF:
pip install --upgrade tensorflow
目前最新版是2.1.0
安装成功后导入:
import tensorflow as tf
此时报错:
ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error. ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error
Traceback (most recent call last):
File "D:\program files\Python37\my_flask_env\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "D:\JetBrains\Toolbox\apps\PyCharm-P\ch-0\183.6156.16\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "D:\program files\Python37\my_flask_env\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "D:\program files\Python37\my_flask_env\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line

1万+

被折叠的 条评论
为什么被折叠?



