Skip to content

python setup.py install fatal error: Python.h: No such file or directory #8

Open
@ZhuFengdaaa

Description

@ZhuFengdaaa

After I type these command

# python setup.py install

I receive these error message:

running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying python/pcre.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_pcre' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/pcremodule.c -o build/temp.linux-x86_64-2.7/src/pcremodule.o -fno-strict-aliasing
src/pcremodule.c:29:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions