本人使用的anaconda,python版本为3.6,之前是基于pip,安装的python3.5直接就可以pip install pyinstaller ,但是使用py3.6版本时却失败,报错如下:

后查阅资料发现py3.6版本后enum34已经不兼容,故无法安装,将该包直接卸载后就可以使用。尝试查看自己是否安装enum,在窗口输入pip list发现如下:
卸载enum,pip uninstall enum34.卸载后,再安装pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple/
我这里用的时清华镜像。成功安装如下:

python无法安装pyinstaller,报错:AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘
最新推荐文章于 2024-11-05 09:40:12 发布
博主在尝试使用Python 3.6版本时遇到pip安装PyInstaller失败的问题,由于enum34在Python 3.6后不再兼容。通过卸载enum34后,成功使用清华镜像源安装了PyInstaller。此博文分享了解决Python依赖冲突的经验。
530

被折叠的 条评论
为什么被折叠?



