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
Community
  • 1
  • 1
Nilani Algiriyage
  • 32,876
  • 32
  • 87
  • 121
  • Tried installing **python-devel**? `sudo apt-get install python-devel` – decached Nov 11 '13 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. – Christoph Nov 11 '13 at 11:52
  • @Akash : Yes, still getting the error..:( – Nilani Algiriyage Nov 11 '13 at 15:32
  • I answered a very similar question: http://stackoverflow.com/a/27253640/1306923 Does this workaround work for you? – tbekolay Dec 02 '14 at 15:59

0 Answers0