赞
踩
在使用pyinstaller对PyQt应用程序打包的时候会出现 pyinstaller:IndexError: tuple index out of range
File "H:\MyGitProject\GUI\PyQt6\PyQt-Fluent-Widgets\PyQt\lib\dis.py", line 292, in _get_const_info argval = const_list[const_index] IndexError: tuple index out of range
当前python环境3.10 PyInstaller版本5.1。
官方文档说PyInstaller已经支持3.7之后的python版本,但在运行过程中还是遇到,IndexError: tuple index out of range问题。
编辑python3\Lib
下的dis.py
文件。
找到def _unpack_opargs(code)
函数,在语句中添加extended_arg=0,如下图所示。
然后就可以打包了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。