Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to install grequests on Ubuntu?

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
like image 273
kfan Avatar asked Sep 25 '13 22:09

kfan


2 Answers

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
like image 169
Zags Avatar answered Sep 24 '22 15:09

Zags


sudo apt-get install libevent-dev

like image 39
santosh.ankr Avatar answered Sep 26 '22 15:09

santosh.ankr