簡體   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