1

我正在尝试使用 pip 安装 Flask-socketIO :

 pip install flask-socketIO 

但最后我面临这个错误:

   cc -O2 -fPIC -Wimplicit -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/home/abhishek/.virtualenvs/test/include -c gevent/gevent.core.c -o build/temp.linux-x86_64-2.7/gevent/gevent.core.o
    gevent/gevent.core.c:9:22: fatal error: pyconfig.h: No such file or directory
     #include "pyconfig.h"
                          ^
    compilation terminated.
    error: command 'cc' failed with exit status 1

    ----------------------------------------
Command "/home/abhishek/.virtualenvs/test/bin/pypy -c "import setuptools,
4

1 回答 1

1

看起来您需要安装 Python 开发包。

在 CentOS / RHEL 上:

yum install python-devel
yum install python-lxml

在 Ubuntu / Debian 上:

sudo apt-get install python-dev libxml2-dev libxslt-dev
于 2015-10-11T14:05:03.527 回答