error: command 'gcc' failed with exit status 1 while installing eventlet error: command 'gcc' failed with exit status 1 while installing eventlet python python

error: command 'gcc' failed with exit status 1 while installing eventlet


Your install is failing because you don't have the python development headers installed. You can do this through apt on ubuntu/debian with:

sudo apt-get install python-dev 

for python3 use:

sudo apt-get install python3-dev

For eventlet you might also need the libevent libraries installed so if you get an error talking about that you can install libevent with:

sudo apt-get install libevent-dev


For Fedora:

sudo yum install python-develsudo yum install libevent-devel

and finally:

sudo easy_install gevent


What worked for me on CentOS was:

sudo yum -y install gccsudo yum install python-devel