Why is the re module trying to import enum.IntFlag?

不羁的心 提交于 2019-12-06 01:38:48

You should check to see if there's another module named enum on your python path that is shadowing the stdlib enum module. To do that, you can do:

import enum
print(enum.__file__)

If that doesn't match the python3 stdlib module path, you try should try to remove it. Ideally, you should use whatever package manager your system uses to uninstall it, as it it might be a dependency of some other package. But if that isn't possible, you can just try removing it manually.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!