我正在尝试使用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或类似的替代方法(例如basemap)来安装,那么这也会很有帮助!在
谢谢你的帮助!在
Installation instructions建议使用
conda
。如果要从源代码安装(使用pip
),则必须安装大量requirements。在为了帮助我们帮助你,你最好给我们看完整的错误信息。
'gcc' failed
不足以理解发生了什么。在相关问题 更多 >
编程相关推荐