【问题标题】:Error loading cartopy: error: command 'gcc' failed with exit status 1加载 cartopy 时出错:错误:命令“gcc”失败,退出状态为 1
【发布时间】: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


    【解决方案1】:

    Installation instructions 推荐使用conda。如果你想从源安装(使用pip)你必须安装一些requirements

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-21
      • 2019-12-01
      • 2023-03-19
      • 1970-01-01
      相关资源
      最近更新 更多