我有一个残酷的时间得到gdal安装。我有一个新的Ubuntu安装和一个虚拟Python 3.6环境,我正在尝试安装GDAL。在处理完所有依赖项需求之后,我现在在运行pip install gdal后得到以下错误
Collecting gdal
Using cached https://files.pythonhosted.org/packages/99/31/2e05c1be3196126fa04028aed51489f40ceea77e8361a80bc8b00fc463db/GDAL-2.3.1.tar.gz
Building wheels for collected packages
我有一个django项目,我想在其中使用gdal。我已经安装了所有的依赖项,如果我安装了这些依赖项,它就能正常工作:
$ python3.6
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from osgeo import gdal
>>> gdal
<m
我目前正在linux集群上的R中运行一些物种分布建模和丰富度映射。为了运行我的分析,我需要安装rgdal,这样我的建模包中的光栅功能才能正常工作。我已经安装了proj4和gdal。然而,当我尝试安装rgdal时,我得到了一个错误消息:
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package 'rgdal'
这是我用来安装rgdal包的命令:
install.packag
我试图安装的软件包sf,但没有成功。
首先,我认为这个问题与图书馆GDAL、GEOS和PROJ有关,但它们都是通过安装过程安装和识别的,如下所示:
install.packages("sf")
Installing package into ‘/home/aliton/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/sf_0.9-8.tar.gz'
Content type 'a
我们得到"django.core.exceptions.ImproperlyConfigured:找不到GDAL库“,GeoDjango's common installation issue。 开发环境是Win10和GDAL库被解析的following this answer on the same question for windows,它直接提供文件路径。我现在不能部署,因为prod是Ubuntu 20.04,而这个答案并没有解决如何在Ubuntu上解决问题。 我刚接触Ubuntu / Linux,我想我已经用sudo apt install libpq-dev gd