第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

錯誤:安裝eventlet時命令'gcc'失敗,退出狀態(tài)為1

錯誤:安裝eventlet時命令'gcc'失敗,退出狀態(tài)為1

翻閱古今 2019-11-22 12:49:41
我想eventlet在我的系統(tǒng)上安裝,以使“ Herd”用于軟件部署..但是終端顯示了gcc錯誤:  root@agrover-OptiPlex-780:~# easy_install -U eventlet  Searching for eventlet  Reading http://pypi.python.org/simple/eventlet/  Reading http://wiki.secondlife.com/wiki/Eventlet  Reading http://eventlet.net   Best match: eventlet 0.9.16    Processing eventlet-0.9.16-py2.7.egg    eventlet 0.9.16 is already the active version in easy-install.pth   Using /usr/local/lib/python2.7/dist-packages/eventlet-0.9.16-py2.7.egg Processing dependencies for eventlet Searching for greenlet>=0.3Reading http://pypi.python.org/simple/greenlet/Reading https://github.com/python-greenlet/greenletReading http://bitbucket.org/ambroff/greenletBest match: greenlet 0.3.4Downloading http://pypi.python.org/packages/source/g/greenlet/greenlet-   0.3.4.zip#md5=530a69acebbb0d66eb5abd83523d8272Processing greenlet-0.3.4.zipWriting /tmp/easy_install-_aeHYm/greenlet-0.3.4/setup.cfgRunning greenlet-0.3.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_aeHYm/greenlet-0.3.4/egg-dist-tmp-t9_gbWIn file included from greenlet.c:5:0:greenlet.h:8:20: fatal error: Python.h: No such file or directorycompilation terminated.error: Setup script exited with error: command 'gcc' failed with exit status 1`為什么Python.h找不到?
查看完整描述

3 回答

?
冉冉說

TA貢獻1877條經(jīng)驗 獲得超1個贊

您的安裝失敗,因為您沒有安裝python開發(fā)標頭。您可以通過在ubuntu / debian上通過apt來執(zhí)行以下操作:


sudo apt-get install python-dev 

對于python3使用:


sudo apt-get install python3-dev

對于eventlet,您可能還需要安裝libevent庫,因此,如果在談?wù)撛撳e誤時可以使用以下命令安裝libevent:


sudo apt-get install libevent-dev


查看完整回答
反對 回復(fù) 2019-11-22
?
慕妹3242003

TA貢獻1824條經(jīng)驗 獲得超6個贊

對于Redhat版本(Centos 7),使用以下命令安裝Python開發(fā)包


Python 2.7


sudo yum安裝python-dev


Python 3.4


須藤百勝安裝python34-devel


如果您的問題仍未解決,請嘗試安裝以下軟件包-


須藤百勝安裝python-devel


須藤yum install openssl-devel


須藤yum安裝libffi-devel


查看完整回答
反對 回復(fù) 2019-11-22
?
楊__羊羊

TA貢獻1943條經(jīng)驗 獲得超7個贊

在MacOS的我遇到了麻煩,安裝fbprophet要求pystan,需要gcc進行編譯。我將始終遇到相同的錯誤:命令“ gcc”失敗,退出狀態(tài)為1


我想我自己解決了這個問題:


我brew install gcc以前安裝的是最新版本,gcc-8


然后,我確保在gcc運行時將使用它gcc-8。


它要么工作,因為我說alias gcc='gcc-8在我的.zshrc(相同.bashrc但zsh的),或者是因為我跑export PATH=/usr/local/bin:$PATH(見注釋)


另外:我的所有嘗試都在虛擬環(huán)境中進行,并且僅通過fbprophet全局安裝(使用pip)成功完成,但在venv內(nèi)部仍未成功


查看完整回答
反對 回復(fù) 2019-11-22
  • 3 回答
  • 0 關(guān)注
  • 986 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號