我尝试做的最后一件事是在cmd行上手动升级tensorflow:
pip install --user tensorflow==1.4.1
更新后,我不断收到此错误,我无法使用pip进行任何其他安装或使用tensorflow运行任何代码:
Traceback (most recent call last):
File "c:\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python36\Scripts\pip.exe\__main__.py", line 2, in <module>
File "c:\python36\lib\re.py", line 142, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
我该如何解决这个问题?