abhishekrana
abhishekrana

Reputation: 144

Trouble installing flask-socketio

I'm trying to install Flask-socketIO using pip :

 pip install flask-socketIO 

But in the end I'm facing this error :

   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,

Upvotes: 1

Views: 1667

Answers (1)

Joe Young
Joe Young

Reputation: 5875

Looks like you need to have the Python Development package installed.

On CentOS / RHEL:

yum install python-devel
yum install python-lxml

On Ubuntu / Debian:

sudo apt-get install python-dev libxml2-dev libxslt-dev

Upvotes: 1

Related Questions