环境: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
环境: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