Python 试图使用;pyinstaller<;scriptname.py>&引用;而且得到了",;TypeError:需要一个整数(获取类型字节)";
我想通过python创建一个简单的yes/no消息框作为一个可执行文件。使用pyqt5并尝试使用pyinstaller生成可执行的文件。获取并出错Python 试图使用;pyinstaller<;scriptname.py>&引用;而且得到了",;TypeError:需要一个整数(获取类型字节)";,python,python-3.x,pyqt,pyqt5,pyinstaller,Python,Python 3.x,Pyqt,Pyqt5,Pyinstaller,我想通过python创建一个简单的yes/no消息框作为一个可执行文件。使用pyqt5并尝试使用pyinstaller生成可执行的文件。获取并出错 TypeError: an integer is required (got type bytes). 使用命令pyinstaller 我在某人的评论中找到了答案 尝试使用与python 3.8兼容的最新版本 pip install https://github.com/pyinstaller/pyinstaller/archive/develop
TypeError: an integer is required (got type bytes).
使用命令pyinstaller
我在某人的评论中找到了答案
尝试使用与python 3.8兼容的最新版本
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
此解决方案适用于我,PyInstaller目前不支持3.8。我建议您使用3.7或更早版本构建,直到支持python 3.8为止显示完整的错误消息感谢您的回答导致堆栈溢出!引用时,请尽可能使用
和作者属性。你可以找到所有可以帮助你的文章更清晰的降价列表。你的解决方案很棒!这对我有用。但是,嗯,你的代码有一个输入错误。您应该键入“install”而不是“instal”
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz