用 pyinstaller 打包程序时出现错误:
Building PYZ because PYZ-00.toc is non existent
....
TypeError: an integer is required (got type bytes).
出现该问题的原因是python 3.8 与 pyinstaller 3.5 不兼容。
直接安装最新开发版
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
解决了该问题。
本文详细介绍了使用PyInstaller打包Python程序时遇到的TypeError问题,特别是当Python版本为3.8时与PyInstaller3.5的不兼容情况。文中提供了解决方案,即安装PyInstaller的最新开发版本,通过pip命令直接从GitHub获取。
2109

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



