您当前的位置: 首页 > 
  • 0浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘?

一个处女座的程序猿 发布时间:2018-06-06 18:41:27 ,浏览量:0

成功解决AttributeError: module 'enum' has no attribute 'IntFlag'?

目录

解决问题

解决思路

解决方法

解决问题

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

解决思路

This is likely caused by the package enum34. Since python 3.4 there's a standard library enum module, so you should uninstall enum34, which is no longer compatible with the enum in the standard library since enum.IntFlag was added in python 3.6. 这可能是由包Enum34引起的。因为Python3.4有一个标准库枚举模块,所以您应该卸载Enum34,因为在Python3.6中添加了Enum.Intflag,所以它不再与标准库中的枚举兼容。

解决方法
pip uninstall enum34   #卸载enum34

大功告成!!哈哈!!

网友推荐解决方法:欢迎各路网友,前来共同探讨出错问题,解决bug,共享快乐!

用不了pip的网友,可直接删掉\Lib\site-packages\enum打头的两个文件夹即可!

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0438s