加载cartopy时出错:错误:命令“gcc”失败,退出状态为1

2024-09-30 00:31:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用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)来安装,那么这也会很有帮助!在

谢谢你的帮助!在


Tags: installpipbuild错误withcodeerroropen
1条回答
网友
1楼 · 发布于 2024-09-30 00:31:00

Installation instructions建议使用conda。如果要从源代码安装(使用pip),则必须安装大量requirements。在

为了帮助我们帮助你,你最好给我们看完整的错误信息。'gcc' failed不足以理解发生了什么。在

相关问题 更多 >

    热门问题