2

I'm having troubles with distributing a package. I want to install numpy 1.8.0 as a dependency in my setup.py. (Ubuntu 12.04)

install_requires=['pandas ==0.12.0','numpy ==1.8.0']

This might be an extension to this question. What they have said here is about installing the python-dev. I tried followings.

sudo apt-get install python-dev   

sudo apt-get install python-gevent

Even after installing it, still the same error is there. Any help is appreciated.

SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel
4
  • Tried installing python-devel? sudo apt-get install python-devel Commented Nov 11, 2013 at 11:38
  • From apt-cache show python-dev: „This package is a dependency package, which depends on Debian's default Python version (currently v2.7)“. There are several python*-dev packages. Make sure you have the one which fits your python version. Commented Nov 11, 2013 at 11:52
  • @Akash : Yes, still getting the error..:( Commented Nov 11, 2013 at 15:32
  • I answered a very similar question: stackoverflow.com/a/27253640/1306923 Does this workaround work for you? Commented Dec 2, 2014 at 15:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.