When I try to install grequests on Ubuntu with pip:
sudo pip install grequests
I get this error, but my gcc seems fine:
In file included from gevent/core.c:253:0:
gevent/libevent.h:9:19: fatal error: event.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
You need to install libevent, which on Ubuntu can be done with:
apt-get install libevent-dev
Alternatively, to install gevent and all it's dependencies automatically:
apt-get install python-gevent
sudo apt-get install libevent-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With