Pyinstaller “Failed to execute script pyi_rth_pkgres” and missing packages

后端 未结 8 631
旧时难觅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:33

    this is because he did not copy a dependency.I solved it like this.

    • pyinstaller my_program.py

    this creates a my_program.spec. it is a base configuration file.

    open it with any text editor. search for

    hiddenimports=[]

    edit to.

    hiddenimports=["pkg_resources.py2_warn"]

    now let's call pyinstaller passing our configured file instead of our program

    • pyinstaller my_program.spec

提交回复
热议问题