我刚刚尝试为python安装tensorflow,当我去控制台查看 init .py是否正常工作时,它返回了此错误。我没有pip或任何其他包经理手动安装它。
>>> import tensorflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\*username\AppData\Local\Programs\Python\Python35-32\lib\tensorflow\__init__.py", line 43, in <module>
_default_dlopen_flags = sys.getdlopenflags()
AttributeError: module 'sys' has no attribute 'getdlopenflags'