qq_18884745
xx_修修修理工
2016-09-06 13:48

python无法导入枚举类

2

运行后的提示

 Traceback (most recent call last):
  File "fenbushijincheng.py", line 4, in <module>
    from multiprocessing.managers import BaseManager
  File "C:\Users\xx\AppData\Local\Programs\Python\Python35-32\lib\multiprocessing\__init__.py", line 16, in <module>
    from . import context
  File "C:\Users\xx\AppData\Local\Programs\Python\Python35-32\lib\multiprocessing\context.py", line 5, in <module>
    from . import process
  File "C:\Users\xx\AppData\Local\Programs\Python\Python35-32\lib\multiprocessing\process.py", line 18, in <module>
    import signal
  File "C:\Users\xx\AppData\Local\Programs\Python\Python35-32\lib\signal.py", line 4, in <module>
    from enum import IntEnum as _IntEnum
  File "C:\Users\xx\xxgit\python\enum.py", line 2, in <module>
    from enum import enum
ImportError: cannot import name 'enum'
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐