python – error: command gcc failed with exit status 1 on CentOS
python – error: command gcc failed with exit status 1 on CentOS
error: command gcc failed with exit status 1 . the installation failed because of missing python-devel and some dependencies.
the best way to correct gcc problem:
You need to reinstall gcc , gcc-c++ and dependencies.
For python 2.7
$ sudo yum -y install gcc gcc-c++ kernel-devel
$ sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel
$ pip install your python packet
For python 3.4
$ sudo apt-get install python3-dev
$ pip install your python packet
Hope this will help.
Is gcc installed?
sudo yum install gcc
python – error: command gcc failed with exit status 1 on CentOS
I bet you have to install libxml2-devel
or libxml++-devel
or even python-devel
. But it is only a wild guess, not seeing the actual error from the log file. But it seems gcc
is missing either a header file or a library file.