Pyinstaller:找不到模块错误(熊猫)

时间:2020-05-20 09:41:30

标签: python pandas pyinstaller eel

当我用-F检查时,出现了“无法加载脚本错误”消息,

File "site-packages\pandas\core\window\ewm.py", line 3, in module 
ImportError: DLL load failed while importing aggregations: The specified module could not be found.

正如说这是熊猫错误,我尝试通过pip install pandas重新安装熊猫,但没有成功。

此问题的解决方法是什么?还有支持eel的Pyinstaller替代品吗?在pyinstaller中,我通常会给出pyintaller -m eel app.py Web --noconsole --onefile以支持鳗鱼UI

1 个答案:

答案 0 :(得分:0)

我有一个解决方案,但它并不美观,无法与--onefile一起使用:

python -m eel app.py Web
pip install -r requirements.txt --target=dist/app --ignore-installed

在需求中,所有python软件包都是您所需要的。 您可能需要添加一些额外的程序包,例如setuptools或astor