【问题标题】:Python based converted exe running in other systems在其他系统中运行的基于 Python 的转换后的 exe
【发布时间】:2018-05-30 07:14:01
【问题描述】:

我使用 python3 开发了一些脚本,用于使用 python osgeo、ogr、gdal、模块进行 GIS 相关活动。我使用 pyinstaller 将我的 script.py 转换为 exe。转换后的 exe 在我的系统上运行良好,但如果在其他系统上运行相同的 exe,它会给出错误,例如名为 gdal 的 nomodule。我使用在 py 到 exe 转换过程中开发的所有 dll 文件运行 exe。请帮帮我?

【问题讨论】:

标签: python-3.x gis pyinstaller gdal osgeo


【解决方案1】:

看来您毕竟没有包含所有依赖项(例如,_gdal 模块丢失,如错误所示)。解决方案是包含所有依赖的 DLL 模块(包括传递依赖 - 我怀疑你在这里错过了)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-09
    • 1970-01-01
    • 2012-12-18
    • 2017-02-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多