如何解决光栅安装问题

时间:2019-09-16 10:02:49

标签: rasterio

当我安装 rasterio 库时,出现以下类型的错误。如何克服呢?谁能帮我完成全部程序。尽管我按照https://rasterio.readthedocs.io/en/stable/installation.html中给出的安装说明进行操作,但我无法防止错误发生。

C:\Python27\Scripts>pip install rasterio
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting rasterio
  Using cached https://files.pythonhosted.org/packages/f7/03/1dcc14b0c77ec4c4ca4bd917527bc41fdbba49f56015d535f3d781c826aa/rasterio-1.0.28.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\user\appdata\local\temp\tmpd49eu2'
       cwd: c:\users\user\appdata\local\temp\pip-install-rm7g58\rasterio
  Complete output (2 lines):
  INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
  ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\user\appdata\local\temp\tmpd49eu2' Check the logs for full command output.

0 个答案:

没有答案