1. 程式人生 > >關於pip install安裝python依賴包時報錯:command 'gcc' failed with exit status 1的解決方案

關於pip install安裝python依賴包時報錯:command 'gcc' failed with exit status 1的解決方案

環境:Centos 7 Python 2.7

在安裝python依賴包時報錯:command 'gcc' failed with exit status 1,如下圖所示:


解決方案是:

sudo yum install python-dev

sudo yum install gcc

如果問題還沒解決,可以嘗試安裝如下依賴包:

sudo yum install libffi-devel

sudo yum install openssl-devel

相關推薦

關於pip install安裝python依賴時報command 'gcc' failed with exit status 1解決方案

環境:Centos 7 Python 2.7在安裝python依賴包時報錯:command 'gcc' failed with exit status 1,如下圖所示:解決方案是:sudo yum install python-devsudo yum install gcc如

Python 安裝模組錯誤 error: command 'gcc' failed with exit status 1

環境:linux命令:pip install pycrypto錯誤: gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector

ubuntu16.04下安裝cx-Oracle報error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -

python3用pip安裝wordcloud庫出現command 'x86_64-linux-gnu-gcc' failed with exit status 1

inux ubuntu tro ubunt get str x86_64 gnu nbsp python3用pip3安裝wordcloud庫出現command ‘x86_64-linux-gnu-gcc‘ failed with exit status 1 錯誤 系統 Ub

python 安裝superseterror: Setup script exited with error: command 'gcc' failed with exit status 1

python 安裝superset 錯誤提示如下: atal error: sasl/sasl.h: No such file ordirectory  #include <sasl/sasl.h>    &nbs

python安裝庫時候Command "python setup.py egg_info" failed with error code 1 解決方案

因比賽需要,需要安裝一個魔方庫 kociemba,使用python最佳 但是pip install  kociemba,出現上述錯誤,於是各種baidu ,CSDN都看了,但是他們的方法都是說缺什麼esay_install啊,需要更新pip安裝工具之類的,我的pyt

error:command 'aarch64-linux-gnu-gcc' failed with exit status 1| TX2安裝jupyter

error:command ‘aarch64-linux-gnu-gcc’ failed with exit status 1| TX2安裝jupyter 平臺:TX2 系統:ubuntu 16.04 python2.7 目的:安裝jupyter notebook 1.問題

windows下pip安裝python模塊時報

linear 安裝 options div margin ont oat str spl windows下pip安裝python模塊時報錯總結前言: 轉載必須標明出處!!!   這幾天把python版本升級後,發現pip安裝模塊好多都報錯(暫不確定是不是因

安裝python gensim時出錯Python pip install fails: invalid command egg_info

在使用pip install gensim時出錯,提示Python pip install fails: invalid command egg_info 我懷疑可能是scripy包沒有安裝好,於是又

pip install 安裝提示unknown

all -- 分享圖片 http 提示 png img mage inf   pip install setuptools --upgrade should fix the issue pip install 安裝提示unknown 包

Ubuntu安裝軟體時報 Failed to fetch ...deb

問題描述 今天在Ubuntu上安裝軟體包的時候報錯,如下: apt-get install nginx Failed to fetch http://mirrors.aliyuncs.com/ubuntu/pool/main/n/nginx/nginx_1.4.6-1ubuntu

Eclipse4.6安裝Tomcat插件時報Unable to read repository at http://tomcatplugin.sf.net/update/content.xml. Received fatal alert: handshake_failure

logs tomcat repos cef blog 時報 技術分享 src tom 錯誤如下: Unable to read repository at http://tomcatplugin.sf.net/update/content.xml.Received fat

maven專案war時報Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile

原因:缺少maven-compiler-plugin.jar包 解決:pom匯入jar包 <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>

Win10系統安裝Cisco VPN Client時報installing Cisco VPN client -Error 27850. Unable to manage networking c

問題描述: WIN10系統安裝VPN Client時,出現報錯資訊: installing Cisco VPN client -Error 27850. Unable to manage networ

npm檢視依賴npm ERR! extraneous解決!!

檢視依賴庫的資訊時候報錯如下所示: npm ERR! extraneous 解決方法: 安裝不需要的軟體包,可以清理掉,實際上只是一個警告,因此可以忽略。忽略這個錯誤可能是安全的。但是你可以用清理不

python 訪問網站時報requests.exceptions.SSLError: HTTPSConnectionPool

cep error git 時報 pen hub openssl pan open 解決該錯誤的正確姿勢是更新pyOpenSSL庫。輸入命令: 1 pip install pyopenssl 參見:   https://github.com/requests/reque

在用python操作mysql時報ModuleNotFoundError- No module named 'MySQLdb'

用Flask+python+mysql寫一個小專案 系統 win10 py版本:3.6.1 在配置資料庫時報錯ModuleNotFoundError: No module named 'MySQLdb' from blog import db db.create_all

安裝xcode6 beta 後調試出現Unable to boot the iOS Simulator以及編譯蘋果官方Swift的demo報failed with exit code 1解決的方法

imu fonts mat 詳細說明 watermark data- 重新啟動 技術分享 說明 蘋果昨天公布新語言Swift(雨燕),須要安裝xcode6 以及mac os 系統為10.9以上。 (xcode6 beta 可在官方下載。須要登錄開發人員賬號;mac os

xcodebuild構建時報unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1

https build stack com lds turned top ngs targe CI今日構建時報出如下錯誤: /Users/xxx/Library/Developer/Xcode/DerivedData/Snowball-ebllohyukujrncba

ifup em2啟動網卡時報connection activation failed

ifup 啟動網卡 報錯 環境:centos7,重啟網絡,報以下錯誤:ifup em2 ##啟動em2網卡時報錯Error: Connection activation failed: The connection is not for this device.解決方法:systemctl