【发布时间】:2018-03-16 03:48:20
【问题描述】:
我正在尝试使用 pip install cartopy 将 cartopy 加载到我的系统中
我使用的 Python 环境版本是 3.5.3,无法更改。我收到以下错误:
error: command 'gcc' failed with exit status 1
它也给了我这个错误:
Command "/opt/apps/python/3.5.3/bin/python3.5 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-
eprit6ql/cartopy/setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code,
__file__, 'exec'))" install --record /tmp/pip-4mg12j4p-record/install-
record.txt --single-version-externally-managed --compile --user --prefix="
failed with error code 1 in /tmp/pip-build-eprit6ql/cartopy/
(抱歉有点乱)
如果有另一种使用 pip 或类似替代方法(例如底图)进行安装的方法,可以推荐,那也会很有帮助!
感谢您的帮助!
【问题讨论】:
标签: python gcc pip matplotlib-basemap cartopy