Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to build a Python module (pyfits) but I get the following error:

# python setup.py install
  /home/steve/src/pyfits-2.2.2/stsci_distutils_hack.py:239: DeprecationWarning: os.popen3 is deprecated.  Use the subprocess module.
  (sin, sout, serr) = os.popen3(cmd)
  running install
  error: invalid Python installation: unable to open /usr/lib64/python2.6/config/Makefile (No such file or directory)

I get the same error when I try and build other modules so my guess is I am missing a Python development library. I am running Mandriva 2010.0, any suggestions?

share|improve this question

2 Answers 2

The module needs python 2.6 and your mandriva 2010.10 either

  1. has the wrong version (check with python -V) of python installed
  2. does not have Python development package (it should be named python-dev python-devel or python-development or something like that) installed
share|improve this answer

Actually you need the package lib64python2.6-devel.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.