error: command 'gcc' failed with exit status 1
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"