【问题标题】:How to install dependencies for module elevation (SRTM data)?如何为模块提升(SRTM 数据)安装依赖项?
【发布时间】:2018-12-07 04:26:57
【问题描述】:

我想使用模块elevation (Python) 来下载 SRTM1 图像。我安装了模块立面图。但是现在我输入eio selfcheck时有这个:

> u'GNU Make' not found or not usable. 
> u'unzip' not found or not usable.
> u'gunzip' not found or not usable.

> u'gdal_translate' not found or not usable.
> u'gdalbuildvrt' not found or not usable

我安装了 GNU make,但我不确定它是否正确。我在目录中有模块 gdal_translate 和 gdalbuildvrt:C:\OSGeo4W64\bin。我应该把它们搬到别的地方吗? GNU make、unzip、gunzip、gdal_translate、gdalbuildvrt 模块还是 .exe?

【问题讨论】:

  • 我也有同样的问题;你有没有解决过@Suge?

标签: python installation dependencies elevation srtm


【解决方案1】:

我正在使用提升模块(主版本)作为外部库,如下:

import sys
sys.path.append("/Users/larosa/dev/ext-libs")

import elevation
elevation.clip(bounds=(12.35, 41.8, 12.65, 42), output='/Users/larosa/Rome- 
DEM.tif')

并运行 selfcheck 我得到:

from elevation import cli
cli.selfcheck()

“您的系统已准备就绪。”

【讨论】:

  • 感谢您的回复。我应该把它放在一个 .py 文件中吗?目录应该是什么?我输入了一个 .py 文件并收到错误:>make 不被识别为内部或外部命令。我将我的 make 路径添加到变量 PATH 中。但我仍然有问题。你从哪里得到的大师版?我是从 pypi 那里得到的。
猜你喜欢
  • 1970-01-01
  • 2017-12-08
  • 2015-02-12
  • 2016-09-16
  • 2013-08-26
  • 2019-12-03
  • 1970-01-01
  • 1970-01-01
  • 2014-02-17
相关资源
最近更新 更多