成功解决File "f:\program files\python\python36\lib\re.py", line 142, in <modul

简介: 成功解决File "f:\program files\python\python36\lib\re.py", line 142, in <modul

解决问题

File "f:\program files\python\python36\lib\re.py", line 142, in

  class RegexFlag(enum.IntFlag):

 

AttributeError: module 'enum' has no attribute 'IntFlag'

 

解决思路

属性错误:模块“enum”没有属性“intflag”

 

 

解决方法

很可能是因为设置了PYTHONPATH环境变量。这将导致无法调用正常的自己的库,因此建议在打开python前执行 unset PYTHONPATH

 

相关文章
|
2月前
|
Python
gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
39 1
|
9月前
|
Ubuntu 计算机视觉 Python
已解决 ImportError:/opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so:undefined symbol:PyCobject Type。
已解决 ImportError:/opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so:undefined symbol:PyCobject Type。
142 0
已解决 ImportError:/opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so:undefined symbol:PyCobject Type。
|
12月前
|
Python
python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]
python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]
506 0
|
算法框架/工具 Caffe
File "/usr/local/lib/python3.5/site-packages/dateutil/rrule.py", line 55 raise ValueError
File "/usr/local/lib/python3.5/site-packages/dateutil/rrule.py", line 55 raise ValueError
86 0
|
Python
Python3不需要uuid:导入/usr/local/lib/python3.x/site-packages/uuid.py提示if not 0 time_low 32L错误
Python3不需要uuid:导入/usr/local/lib/python3.x/site-packages/uuid.py提示if not 0 time_low 32L错误
79 0
ld: file not found: python.exe报错解决
ld: file not found: python.exe报错解决
124 0
成功解决ERROR: Command errored out with exit status 1: command: 'f:\program files\python\python36\pyt
成功解决ERROR: Command errored out with exit status 1: command: 'f:\program files\python\python36\pyt
成功解决Exception: Graph file doesn't exist, path=F:\File_Python\Python_example\Human_Posture_Detection\
成功解决Exception: Graph file doesn't exist, path=F:\File_Python\Python_example\Human_Posture_Detection\
|
Python
解决 Traceback (most recent call last):File “D:\FAE\python\lib\runpy.py“, line 193
解决 Traceback (most recent call last):File “D:\FAE\python\lib\runpy.py“, line 193
1465 0