【问题】Python AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘

【问题】Python AttributeError: module 'enum' has no attribute 'IntFlag'

问题

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

解决思路

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

解决方法

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

猜你喜欢

转载自blog.csdn.net/G971005287W/article/details/131665411