云主机优惠发布平台
严肃云主机体验评测

解决"command 'gcc' failed with exit status 1"错误问题

老左在用pip安装Python库软件的时候遇到"command 'gcc' failed with exit status 1"错误问题,看似缺少gcc组件,但是确实在安装之前有执行过yum安装gcc,但是还是有这样的问题,于是找呀找看到有网友提到缺少openssl-devel支持。

解决"command 'gcc' failed with exit status 1"错误问题

解决方法:

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

执行完毕之后,再回到之前执行的pip安装python库命令,执行后老左没有看到错误提示。

看来问题解决。

投上你的一票
未经允许不得转载:老左笔记 » 解决"command 'gcc' failed with exit status 1"错误问题