python打包:
pyinstaller --onefile wc_main3.py
pyi-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.spec
File "/home/a/anaconda3/envs/l/lib/python3.10/dis.py"
extended_arg=0#caicai
def _unpack_opargs(code):
extended_arg = 0
for i in range(0, len(code), 2):
op = code[i]
if op >= HAVE_ARGUMENT:
arg = code[i+1] | extended_arg
extended_arg = (arg << 8) if op == EXTENDED_ARG else 0
else:
arg = None
extended_arg=0#caicai
yield (i, op, arg)
遇见报错:Pyinstaller打包报错IndexError: tuple index out of range 参考下面大神