我正在尝试使用 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,
最佳答案
看起来您需要安装 Python 开发包。
在 CentOS/RHEL 上:
yum install python-devel
yum install python-lxml
在 Ubuntu/Debian 上:
sudo apt-get install python-dev libxml2-dev libxslt-dev
关于python - 安装 Flask-socketio 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33065341/