我正在使用PyCharm IDE,无法安装'cartopy‘。
当我在PyCharm终端中运行命令‘PyCharm cartopy’时,我会收到以下错误消息:
Collecting cartopy
Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
Complete output from command f:\python\python.exe f:\python\lib\site-packages\pip\_vendor\pep517\_in_process.py get_requires_for_build_wheel C:\Users\sagar\AppData\Local\Temp\tmpzriwmmff:
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 "f:\python\python.exe f:\python\lib\site-packages\pip\_vendor\pep517\_in_process.py get_requires_for_build_wheel C:\Users\AppData\Local\Temp\tmpzriwmmff" failed with error code 1 in C:\Users\AppData\Local\Temp\pip-install-npt9snvs\cartopy发布于 2021-12-11 13:55:00
Cartopy文档建议使用Conda (链接):
conda install -c conda-forge cartopy使用pip安装它也是可能的,但是由于Cartopy有许多非Python依赖项(如Proj和GEOS),您必须分别安装这些依赖项。这是一个麻烦,很容易导致像上面这样的错误。另一方面,Conda也可以为您处理这些非Python依赖关系。
https://stackoverflow.com/questions/55287368
复制相似问题