首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >django-leaflet安装异常

django-leaflet安装异常
EN

Stack Overflow用户
提问于 2017-09-07 22:28:42
回答 1查看 506关注 0票数 0

我是Django的新手,我想安装宣传单来显示地图。我遵循了installation instructions,虽然pip命令似乎工作得很好,但当我转到settings.py将leaflet添加到我已安装的应用程序中时,当我保存文件时,我收到以下错误:

代码语言:javascript
复制
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000002494D622730>

在回溯的末尾是这样的:

代码语言:javascript
复制
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’。我遗漏了什么?

EN

回答 1

Stack Overflow用户

发布于 2017-09-09 01:21:18

看起来你没有正确安装GDAL。这是geodjango的要求,see the installation notes.

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46098934

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档