小编Jus*_*nes的帖子

使用pip install安装Cartopy,但缺少Proj版本至少4.9.0

看来我无法在计算机上安装Cartopy。我直接从Windows命令行工作(没有Anaconda或其他代理程序)。

当我尝试“ pip install cartopy”时,得到了预期的结果:

C:\Users\Justin\Documents\Python Programs>pip install cartopy
Collecting cartopy
  Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
  Installing build dependencies ... done
    Complete output from command python setup.py egg_info:
    C:\Users\Justin\AppData\Local\Temp\pip-install-cetb0vj7\cartopy\setup.py:171: UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.
      '.'.join(str(v) for v in GEOS_MIN_VERSION), ))
    Proj 4.9.0 must be installed.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Justin\AppData\Local\Temp\pip-install-cetb0vj7\cartopy\
Run Code Online (Sandbox Code Playgroud)

我知道“ pip install proj”实际上没有获得正确的模块版本,所以我去了https://proj4.org/install.html下载并安装OSGeo4W,我以为可以解决我的问题,但似乎没有(供参考,我的电脑上仍然有此功能)。

因此,然后我尝试直接从此https://www.lfd.uci.edu/~gohlke/pythonlibs/#cartopy网站安装cartopy .whl,并尝试使用“ pip install Cartopy-0.17.0-cp37-cp37m-win32”。 …

pip proj cartopy

0
推荐指数
3
解决办法
4774
查看次数

标签 统计

cartopy ×1

pip ×1

proj ×1