Why is the re module trying to import enum.IntFlag?
问题 How is it possible that a core module is importing a non-existent name from another core module? Specifically, the re module importing enum.IntFlag Ways to Reproduce It can be reproduced by launching an interpreter and attempting the import, running a program that depends on enum.IntFlag such as pip , viewing the interpreter settings page in Eclipse, using the text editor, running the interactive console in PyDev, ... Directly importing from enum import IntFlag Traceback (most recent call