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

相关文章
|
iOS开发 MacOS Python
【Python】已解决:(Pycharm切换Python版本后报错)No Python at “C:\Program Files\Python39\python.exe”
【Python】已解决:(Pycharm切换Python版本后报错)No Python at “C:\Program Files\Python39\python.exe”
1934 0
【Python】已解决:(Pycharm切换Python版本后报错)No Python at “C:\Program Files\Python39\python.exe”
|
Python Windows
【Azure 应用服务】App Service For Windows 环境中部署Python站点后,如何继续访问静态资源文件呢(Serving Static Files)?
【Azure 应用服务】App Service For Windows 环境中部署Python站点后,如何继续访问静态资源文件呢(Serving Static Files)?
413 0
|
安全 网络协议 网络安全
【Python】已解决:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=’ files. pyth
【Python】已解决:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=’ files. pyth
2496 0
|
编译器 Python
成功解决We recommend that if you want Anaconda registered as your system Python, you unregister this Pyt
成功解决We recommend that if you want Anaconda registered as your system Python, you unregister this Pyt
成功解决We recommend that if you want Anaconda registered as your system Python, you unregister this 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\
成功解决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 "unhandled RuntimeError" run loop already started File: F:\Program Files\Python\Python
成功解决Exception "unhandled RuntimeError" run loop already started File: F:\Program Files\Python\Python
成功解决Exception "unhandled OSError" cannot open resource File: F:\Program Files\Python\Python36\Lib\si
成功解决Exception "unhandled OSError" cannot open resource File: F:\Program Files\Python\Python36\Lib\si
|
数据采集 机器学习/深度学习 人工智能
Python:现代编程的首选语言
Python:现代编程的首选语言
1950 102
|
数据采集 机器学习/深度学习 算法框架/工具
Python:现代编程的瑞士军刀
Python:现代编程的瑞士军刀
674 104

推荐镜像

更多