最近用pyinstaller打包的时候一直报“failed to execute script main”。
最终使用“pyinstaller --hidden-import=pkg_resources -F main.py</strong>” 顺利打包。
注意:语句中的“-F”一定要大写
最近用pyinstaller打包的时候一直报“failed to execute script main”。
最终使用“pyinstaller --hidden-import=pkg_resources -F main.py</strong>” 顺利打包。
注意:语句中的“-F”一定要大写