使用pip(或conda)安装cartopy
pip install cartopy
报错
ERROR: Command errored out with exit status 1:
command: /home/mlli/anaconda3/envs/deepsphere/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/mlli/pip-install-6xdwlgfn/cartopy_b061d538b6be48e0a39db2878cca4ebf/setup.py'"'"'; __file__='"'"'/home/mlli/pip-install-6xdwlgfn/cartopy_b061d538b6be48e0a39db2878cca4ebf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /home/mlli/pip-pip-egg-info-avvdfa6v
cwd: /home/mlli/pip-install-6xdwlgfn/cartopy_b061d538b6be48e0a39db2878cca4ebf/
Complete output (3 lines):
/home/mlli/pip-install-6xdwlgfn/cartopy_b061d538b6be48e0a39db2878cca4ebf/setup.py:107: 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.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(
whl安装未果,最后根据Stackoverflow解决方法如下:
conda install --channel conda-forge cartopy