Pyinstaller打包报错IndexError: tuple index out of range
这个问题主要是在Python3.7以上的版本中遇到,用pyinstaller打包的时候发现报错
解决方案
找到 /Lib/dis.py文件
找到def _unpack_opargs(code)函数,在else语句中添加extended_arg=0,如下:
Pyinstaller打包报错IndexError: tuple index out of range
这个问题主要是在Python3.7以上的版本中遇到,用pyinstaller打包的时候发现报错
解决方案
找到 /Lib/dis.py文件
找到def _unpack_opargs(code)函数,在else语句中添加extended_arg=0,如下: