python打包:
pyinstaller --onefile wc_main3.pypyi-makespec wc_main3.py
====》pyi-makespec wc_main3.py
Wrote /home/a/wc_main3.spec.
Now run pyinstaller.py to build the executable.pyinstaller wc_main3.specFile "/home/a/anaconda3/envs/l/lib/python3.10/dis.py" extended_arg=0#caicaidef _unpack_opargs(code):extended_arg = 0for i in range(0, len(code), 2):op = code[i]if op >= HAVE_ARGUMENT:arg = code[i+1] | extended_argextended_arg = (arg << 8) if op == EXTENDED_ARG else 0else:arg = Noneextended_arg=0#caicaiyield (i, op, arg)
遇见报错:Pyinstaller打包报错IndexError: tuple index out of range 参考下面大神
【解决】Pyinstaller打包报错IndexError: tuple index out of range_pyinstaller indexerror: tuple index out of range-CSDN博客