我有一个用pyinstaller创建的exe文件,当我试图运行它时,它会给出以下错误:
ModuleNotFoundError:没有名为“pkg_resources.py2_warn”50728的模块
执行脚本pyi_rth_pkgres失败
python脚本包含一个使用来自BlockingScheduler的apscheduler.schedulers.blocking的调度程序,当我将它作为python脚本执行时,它可以工作,但将此错误返回为exe文件。
发布于 2020-05-01 11:24:41
在堆栈溢出(不记得url)上看到了这个答案:下面是您需要做的事情:
步骤:1 pip uninstall pyinstaller
步骤:2 pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
GoodLuck
https://stackoverflow.com/questions/61445102
复制相似问题