使用pyinstaller/auto-py-to-exe将py文件打包出现“Failed to execute script pyi_rth_pkgres”问题
你好,我按照链接下载后,安装pyinstaller提示没有版本号,请问这是什么问题,怎样解决呢?非常感谢
AttributeError: module 'PyInstaller' has no attribute 'version'
方案来自 梦想橡皮擦 狂飙组基于 GPT 编写的 “程秘”
这个问题可能是由于没有正确安装 PyInstaller 导致的。可以尝试以下步骤解决这个问题:
参照github大神提供的解决方案
https://github.com/pyinstaller/pyinstaller/issues/2137
1.卸载从http://www.pyinstaller.org/下载的PyInstaller
方法:pip install pyinstaller
2.从GitHub开发人员存储库下载pyinstaller压缩包
https://github.com/pyinstaller/pyinstaller/archive/develop.zip
3.解压后安装;
方法:win+r进入控制台
\进入解压后的pyinstaller文件夹
cd C:\Users\Mmao\Desktop\pyinstaller-develop #pyinstaller解压文件的路径
\安装pyinstaller
python setup.py install
然后重新打包即可解决。