小编bel*_*416的帖子

在Heroku上安装GDAL Python绑定

我正在尝试制作一个使用osgeo的GDAL python绑定的heroku应用程序。我已经尝试了几件事,但是没有任何效果。

我无法在部署中安装GDAL python绑定。这些是我当前的构建包

test-gerry的下一个版本将使用:1. heroku / python 2. heroku / nodejs

还有我的requirements.txt

attrs==18.2.0
Click==7.0
click-plugins==1.0.4
cligj==0.5.0
cycler==0.10.0
decorator==4.3.0
Fiona==1.8.4
matplotlib==3.0.2
munch==2.3.2
networkx==2.2
numpy==1.15.1
pandas==0.23.4
pyparsing==2.3.0
python-dateutil==2.7.5
pytz==2018.7
kiwisolver==1.0.1
Shapely==1.6.4.post2
six==1.12.0
scipy==1.1.0
geopandas==0.4.0
gerrychain==0.2.2
pyproj==1.9.5.1
Run Code Online (Sandbox Code Playgroud)

当我将gdal == 2.3.1添加到requirments.txt中时失败

remote: -----> Python app detected
remote: -----> Installing requirements with pip
remote:        Collecting gdal==2.3.1 (from -r /tmp/build_11d41259c199f22382350ebd6af5e868/requirements.txt (line 23))
remote:          Downloading https://files.pythonhosted.org/packages/99/31/2e05c1be3196126fa04028aed51489f40ceea77e8361a80bc8b00fc463db/GDAL-2.3.1.tar.gz (557kB)
remote:        Installing collected packages: gdal
remote:          Running setup.py install for gdal: started
remote:            Running setup.py install for gdal: finished …
Run Code Online (Sandbox Code Playgroud)

python heroku gdal

5
推荐指数
0
解决办法
173
查看次数

标签 统计

gdal ×1

heroku ×1

python ×1