当我尝试使用 pip 在 Ubuntu 上安装 grequests 时:
sudo pip install grequests
我收到此错误,但我的 gcc 似乎没问题:
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
最佳答案
您需要安装 libevent,在 Ubuntu 上可以通过以下方式完成:
apt-get install libevent-dev
或者,自动安装 gevent 及其所有依赖项:
apt-get install python-gevent
关于python - 试图在 Ubuntu 上安装 grequests?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19016265/