这是我尝试安装 gevent-socketio 时的错误
安装收集的包:gevent、greenlet 运行 setup.py install 为 gevent 构建“gevent.core”扩展 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes >-fPIC -DLIBEV_EMBED= 1 -DEV_COMMON= -DEV_CHECK_ENABLE=0 -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.core.c -o build/temp.linux-x86_64-2.7/gevent/gevent.core.o gevent/gevent.core.c:17:20:致命错误:Python.h:没有这样的文件或目录编译终止. 错误:命令 'gcc' 失败,退出状态 1 命令 /usr/bin/python -c "import setuptools; file ='/var/www/bleu/build/gevent/setup.py';exec(compile(打开(文件).read().replace('\r\n', '\n'), file , 'exec'))" install --single-version-externally-managed --record /tmp/pip-_kv6Fy-record /install-record.txt:运行安装
运行构建
运行 build_py
运行 build_ext
构建“gevent.core”扩展
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC > -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CHECK_ENABLE=0 -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.core.c -o build/temp.linux-x86_64-2.7/gevent/gevent.core。 ○
gevent/gevent.core.c:17:20:致命错误:Python.h:没有这样的文件或目录
编译终止。
错误:命令“gcc”失败,退出状态为 1
你知道我该如何解决这个问题吗?