无法安装Cartopy,因为我缺少已有的要求

时间:2019-12-22 14:02:42

标签: python installation cartopy geos proj

我尝试用pip install Cartopy在Pycharm中安装Cartopy,但安装失败。终端机说即使我通过OSgeo4W安装了GEOS和Proj,也缺少它们。 我尝试了pip install Projpip install GEOS,但无济于事。

OSGeo4W位于C:\ OSGeo4W

Collecting Cartopy
  Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'

  ERROR: Command errored out with exit status 1:
   command: 'E:\Python projects\SiamWarBot2020\venv\Scripts\python.exe' 'E:\Python projects\SiamWarBot2020\venv\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\LEVEL5~1\AppData\Local\Temp\tmpxgxamgd_'
       cwd: C:\Users\LEVEL51PC\AppData\Local\Temp\pycharm-packaging\Cartopy
  Complete output (5 lines):
  setup.py:168: UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.
    warnings.warn(
  setup.py:224: UserWarning: Unable to determine Proj version. Ensure you have 4.9.0 or later installed, or installation may fail.
    warnings.warn(
  Proj version 0.0.0 is installed, but cartopy requires at least version 4.9.0.
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'E:\Python projects\SiamWarBot2020\venv\Scripts\python.exe' 'E:\Python projects\SiamWarBot2020\venv\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\LEVEL5~1\AppData\Local\Temp\tmpxgxamgd_' Check the logs for full command output.

0 个答案:

没有答案