python程序打包后会出现tuple index out of range错误?

img

python在cmd pycharm中可以正常运行,但经过pyinstaller和cx_freeze打包后会出现tuple index out of range错误

请问如何解决,或者是否存在其他更优的打包方式

可以将py文件打包为pyd文件

pyinstaller版本不支持的问题
STEP1:uninstall pyinstaller

uninstall pyinstaller

STEP2: 换清华镜像源下载

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyinstaller

STEP3:重新打包


pyinstaller -D xxx.py