【问题标题】:django-leaflet installation exceptiondjango-leaflet 安装异常
【发布时间】:2017-09-07 14:28:41
【问题描述】:

我是 Django 新手,我想安装传单来显示地图。我遵循了installation instructions,虽然 pip 命令似乎运行良好,但当我转到 settings.py 将传单添加到我已安装的应用程序时,当我保存文件时出现此错误:

Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000002494D622730>

在回溯的最后是这样的:

django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal201", "gdal20", "gdal111", "gdal110", "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.

在 settings.py 的已安装应用程序部分,我尝试添加“leaflet”或“django-leaflet”。我错过了什么?

【问题讨论】:

  • 发布完整的回溯

标签: python django leaflet


【解决方案1】:

您似乎没有正确安装 GDAL。这是 geodjango 要求,see the installation notes.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-01-02
    • 2013-09-10
    • 2014-12-11
    • 1970-01-01
    • 2014-01-31
    • 2020-09-25
    • 2011-01-13
    • 2014-03-10
    相关资源
    最近更新 更多