如何在更新的ubuntu14.04上安装gevent

2024-04-29 06:18:53 发布

您现在位置:Python中文网/ 问答频道 /正文

最近,当我尝试安装gevent1.0.2时,我收到以下错误:

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.linux-x86_64-2.7/libev -Ilibev -I/usr/include/python2.7 -c gevent/gevent.corecext.c -o build/temp.linux-x86_64-2.7/gevent/gevent.corecext.o

In file included from gevent/libev.h:2:0,
                 from gevent/gevent.corecext.c:249:
libev/ev.c:45:22: fatal error: config.h: Aucun fichier ou dossier de ce type
 #  include "config.h"
                      ^

compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

我错过了什么?无论我是否安装libev-dev,它都会以相同的错误停止。在


Tags: fromdevgnuincludeenablelinux错误gevent