Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on ubuntu , _sctp.c:8:20: fatal error: Python.h: No such file or directory #9

Closed
kamal2222ahmed opened this issue Jan 20, 2012 · 1 comment

Comments

@kamal2222ahmed
Copy link

here is the screenshot of the install:
sudo python setup.py install
[sudo] password for kahmed:
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
copying sctp.py -> build/lib.linux-i686-2.7
running build_ext
building '_sctp' extension
creating build/temp.linux-i686-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I. -I/usr/include -I/usr/include/python2.7 -c _sctp.c -o build/temp.linux-i686-2.7/_sctp.o
_sctp.c:8:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

after i install :
sudo apt-get install libsctp-dev
and Change Makefile to reflect current Python version, i still get the same error:

Python version is 2.7.2

@kamal2222ahmed
Copy link
Author

Found the Solution:

How To Fix: fatal error: Python.h: No such file or directory

To fix
sudo apt-get install python-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant