繁体   English   中英

加载Cartopy时出错:错误:命令'gcc'失败,退出状态为1

[英]Error loading cartopy: error: command 'gcc' failed with exit status 1

我正在尝试使用pip install 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或类似的替代方法(例如底图)进行安装,这也将有所帮助!

谢谢你的帮助!

安装说明建议使用conda 如果要从源安装(使用pip ),则必须安装许多要求

PS。 为了帮助我们为您提供帮助,您最好向我们展示完整的错误消息。 'gcc' failed不足以了解发生了什么。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM