繁体   English   中英

pyinstaller 无法执行脚本 pyi rth pkgres

[英]pyinstaller failed to execute script pyi rth pkgres

我有一个用 pyinstaller 制作的 exe 文件,当我尝试运行它时,它给了我这个错误:

ModuleNotFoundError:没有名为“pkg_resources.py2_warn”的模块 [50728]

执行脚本 pyi_rth_pkgres 失败

python 脚本包含一个使用来自 apscheduler.schedulers.blocking 的 BlockingScheduler 的调度程序,当我将它作为 python 脚本执行时工作,但将此错误作为 exe 文件返回。

在stackoverflow上看到了这个答案(不记得网址):这是你需要做的:

步骤:1 pip uninstall pyinstaller

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

祝你好运

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM