出现"command 'gcc' failed with exit status 1"错误的解决方法

说明:今天在安装Python库软件的时候遇到"command 'gcc' failed with exit status 1"错误问题,之后有执行过yum安装gcc,但是还是...

bysem (25)

说明:今天在安装Python库软件的时候遇到"command 'gcc' failed with exit status 1"错误问题,之后有执行过yum安装gcc,但是还是有这样的问题,于是查了点资料发现缺少openssl-devel支持,所以我们需要安装openssl-devel才能解决问题。

方法

这里用的CentOs系统,执行命令:

yum install gcc libffi-devel python-devel openssl-devel -y

然后就可以解决问题了。

0 I like it
0 I don't like it

Leave a Reply

Your email address will not be published. Required fields are marked *