已解决AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘?
解决 No module has attribute AttributeError Enum
2023-09-27 14:27:32 时间
已解决AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘?
报错问题
之前在工作中遇到过这个坑,记录一下问题以及解决方法,不一定针对所有情况都能用,但是可以供大家参考。
问题描述如下:
AttributeError: module ‘enum’ has no attribute ‘IntFlag’?
解决方法
这可能是由包Enum34引起的。因为Python3.4有一个标准库枚举模块,所以您应该卸载Enum34,因为在Python3.6中添加了Enum.Intflag,所以它不再与标准库中的枚举兼容。
pip uninstall enum34 #卸载enum34
PS
有问题评论区留言即可
相关文章
- Spyder启动报错:ModuleNotFoundError: No module named ‘PyQt5.QtWebKitWidgets‘ 解决方法
- pyinstaller no module named ‘pkg_resources.py2_warn‘解决方法
- Hibernate出现org.hibernate.InstantiationException: No default constructor for entity解决方法
- Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- 【问题记录与解决】ModuleNotFoundError: No module named ‘pymongo‘ 并测试代码
- 解决 No active profile set, falling back to 1 default profile: “default“问题以及如何查看spring boot版本号
- 完美解决AttributeError: module ‘string‘ has no attribute ‘find‘
- 完美解决oduleNotFoundError: No module named ‘urllib2‘
- 完美解决ModuleNotFoundError: No module named ‘sklearn.grid_search‘
- 已解决ModuleNotFoundError: No module named codecs
- 已解决ModuleNotFoundError: No module named ‘requests‘
- 已解决AttributeError: ‘str‘ object has no attribute ‘decode‘
- 已解决No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender
- 已解决AttributeError: NoneType object has no attribute异常的正确解决方法,亲测有效!!!
- 已解决AttributeError: module ‘pandas‘ has no attribute ‘tslib‘异常的正确解决方法,亲测有效!!!
- 解决有道markdown公式居左问题的唯一方法
- FatFs读写SD卡出现FR_NO_FILESYSTEM解决方法.
- Linux系统提示"No space left on device"解决方法
- Linux学习 -->解决Ubuntu系统上 No command 'crond' found