【发布时间】:2021-07-01 12:40:35
【问题描述】:
我使用 PyInstaller 4.3 和 scikit-image 0.18.1 创建了一个应用程序。我将它安装在一个干净的 Windows 10 虚拟机上进行测试。但是,当运行可执行文件(启用控制台输出)时,它会显示以下错误:
ImportError: DLL load failed while importing _rolling_ball_cy: The specified module could not be found.
[4920] Failed to execute script main
我尝试将skimage.restoration._rolling_ball_cy 添加到setup.py 中的隐藏导入中,但这并没有解决问题。
【问题讨论】:
-
你使用了什么pyinstaller执行命令?
-
也试过 scikit-image==0.18.2
-
@patrickgerard
pyinstaller -F -y main.spec。生成的可执行文件给出了错误。 -
试试这个
pyinstaller --noconfirm --onefile --console "C:/path/to/file" -
我找到了解决方案。谢谢@patrickgerard。
标签: python windows pyinstaller python-3.8 scikit-image