Pyinstaller “Failed to execute script pyi_rth_pkgres” and missing packages

后端 未结 8 623
旧时难觅i
旧时难觅i 2020-11-29 03:54

This is my first time posting a question here as most of my questions have already been answered by someone else! I am working on a GUI application in python and am attempt

8条回答
  •  野性不改
    2020-11-29 04:35

    pyinstaller --hidden-import=pkg_resources.py2_warn --onefile example.py
    

    you can use this really it works no need to install or uninstall anything just use this it will create one file only , below code will not create the black window also if you are creating a Tkinter application mainly

     pyinstaller --hidden-import=pkg_resources.py2_warn --onefile --noconsole example.py
    

提交回复
热议问题