Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 试图使用;pyinstaller<;scriptname.py>&引用;而且得到了",;TypeError:需要一个整数(获取类型字节)";_Python_Python 3.x_Pyqt_Pyqt5_Pyinstaller - Fatal编程技术网

Python 试图使用;pyinstaller<;scriptname.py>&引用;而且得到了",;TypeError:需要一个整数(获取类型字节)";

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

我想通过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.tar.gz

此解决方案适用于我,PyInstaller目前不支持3.8。我建议您使用3.7或更早版本构建,直到支持python 3.8为止

显示完整的错误消息感谢您的回答导致堆栈溢出!引用时,请尽可能使用
和作者属性。你可以找到所有可以帮助你的文章更清晰的降价列表。你的解决方案很棒!这对我有用。但是,嗯,你的代码有一个输入错误。您应该键入“install”而不是“instal”
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz