成功解决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

 

相关文章
|
3月前
|
IDE 开发工具 Python
【Python】已完美解决:SyntaxError: Non-UTF-8 code starting with ‘æ‘ in file E:/Python/3.py on line 4, but no
【Python】已完美解决:SyntaxError: Non-UTF-8 code starting with ‘æ‘ in file E:/Python/3.py on line 4, but no
98 0
|
3月前
|
数据安全/隐私保护 Python
【Python】已解决:WARNING: Ignoring invalid distribution -addlepaddle (d:\soft\python36\lib\site-packages)
【Python】已解决:WARNING: Ignoring invalid distribution -addlepaddle (d:\soft\python36\lib\site-packages)
413 1
|
3月前
|
程序员 开发者 Python
【Python】已解决:Traceback (most recent call last): File “C:/python/kfc.py”, line 8, in KfcError: KFC Cra
【Python】已解决:Traceback (most recent call last): File “C:/python/kfc.py”, line 8, in KfcError: KFC Cra
81 0
|
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。
269 0
已解决 ImportError:/opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so:undefined symbol:PyCobject Type。
|
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错误
106 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
106 0
|
Python
python报错——Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-wq8dcdx6/cry
python报错——Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-wq8dcdx6/cry
609 0
python报错——Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-wq8dcdx6/cry
成功解决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
|
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
1546 0
成功解决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
下一篇
无影云桌面