其他分享
首页 > 其他分享> > pyinstaller打包报错for real_module_name, six_moduleAttributeError: 'str' object has no attribu

pyinstaller打包报错for real_module_name, six_moduleAttributeError: 'str' object has no attribu

作者:互联网

在https://github.com/pyinstaller/pyinstaller/issues/3507 即github的讨论区部分有很多对于出现问题求解的方法,

导致原因和python多数奇奇怪怪的问题一样,依赖包的版本问题。

解决办法:

对setuptools这个包进行升级,链接在这里 https://pypi.org/project/setuptools/

直接下载最新版就行了,不知道直接pip install setuptools好不好使,反正我没有用

感谢评论区兄弟发言:

pip install -U --pre setuptools就行了

标签:real,github,pyinstaller,https,object,install,报错,setuptools,pip
来源: https://blog.51cto.com/u_12136715/2953457