Skip to content
Home » error: Setup script exited with error: command ‘gcc’ failed with exit status 1

error: Setup script exited with error: command ‘gcc’ failed with exit status 1

To solve error: command ‘gcc’ failed with exit status 1 while installing eventlet error follow below methods.

ERROR LOG

compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1`

How to solve error: command ‘gcc’ failed with exit status 1 while installing eventlet ?

Because you don’t have the python development headers installed, your installation will fail. On Ubuntu/Debian, you may accomplish this with apt:

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

Hope the above solution works.

Also read :

ValidJSONDecodeError: Expecting , delimiter