pyinstaller failed to execute script pyi rth pkgres

≡放荡痞女 提交于 2021-02-04 21:28:16

问题


I have an exe file that I made with pyinstaller and when I try to run it it gives me this error:

ModuleNotFoundError: No module named 'pkg_resources.py2_warn' [50728]

Failed to execute script pyi_rth_pkgres

the python script contains a scheduler using BlockingScheduler from apscheduler.schedulers.blocking that works when I execute it as a python script, but return this error as an exe file.


回答1:


Saw this answer on stackoverflow (can't remember the url): Here's what you need to do:

Step:1 pip uninstall pyinstaller

Step:2 pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

GoodLuck



来源:https://stackoverflow.com/questions/61445102/pyinstaller-failed-to-execute-script-pyi-rth-pkgres

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!