【发布时间】:2018-02-28 23:41:55
【问题描述】:
我在 Windows 10 上使用 Django 11.4,但在尝试迁移模型时遇到了问题。我收到此错误:
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal201", "gdal20", "gdal111", "gdal110", "gdal19")
我按照 GeoDjango 的安装说明 (https://docs.djangoproject.com/en/1.11/ref/contrib/gis/install/),但仍然遇到问题。我在此错误中发现的所有内容都表明要更改系统环境变量。
我安装了OSGe4W 并添加了GDAL_DATA = C:\OSGeo4W\share\gdal 以及PROJ_LIB= C:\OSGeo4W\share\proj。
我不确定还有什么可以尝试的,如果有更多见解,我将不胜感激。
【问题讨论】:
-
您尝试设置了吗?
GDAL_LIBRARY_PATH -
你有想过这个吗?
标签: django windows-10 environment-variables gdal geodjango