• Home »
  • Errors »
  • error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)
error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)

error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)

I received the error below when attempting to use easy_install to add the html5lib package on a server for a client. I assumed all of the necessary python packages were installed since easy_install was already available via python-setuptools-devel. After a quick investigation I noticed that the python-devel package was not installed. This can easily be installed on CentOS Linux using yum with the directions below.

Error: error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)

Yum Command To Resolve Error:

bash

  1. yum install python-devel

Example Of Successful python-devel On CentOS 5.3 Linux Server:

bash

  1. [root@server ~]# yum install python-devel
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. * rpmforge: ftp-stud.fht-esslingen.de
  5. * atomic: www.atomicorp.com
  6. * base: mira.sunsite.utk.edu
  7. * updates: dist1.800hosting.com
  8. * addons: www.cyberuse.com
  9. * extras: pubmirrors.reflected.net
  10. Setting up Install Process
  11. Parsing package install arguments
  12. Resolving Dependencies
  13. --> Running transaction check
  14. ---> Package python-devel.i386 0:2.4.3-27.el5 set to be updated
  15. --> Finished Dependency Resolution
  16.  
  17. Dependencies Resolved
  18.  
  19. ====================================================================================================================================
  20. Package                               Arch                        Version                         Repository                  Size
  21. ====================================================================================================================================
  22. Installing:
  23. python-devel                        i386                        2.4.3-27.el5                       base                        1.0 M
  24.  
  25. Transaction Summary
  26. ====================================================================================================================================
  27. Install      1 Package(s)
  28. Update       0 Package(s)
  29. Remove       0 Package(s)
  30.  
  31. Total download size: 1.0 M
  32. Is this ok [y/N]: y
  33. Downloading Packages:
  34. python-devel-2.4.3-27.el5.i386.rpm                                                                              | 1.0 MB     00:00
  35. Running rpm_check_debug
  36. Running Transaction Test
  37. Finished Transaction Test
  38. Transaction Test Succeeded
  39. Running Transaction
  40. Installing     : python-devel                                    [1/1]
  41.  
  42. Installed: python-devel.i386 0:2.4.3-27.el5
  43. Complete!
  44. [root@server ~]#

That is all you need to do so you can now use easy_install to add python packages to the server.

Programming in Python 3: A Complete Introduction to the Python Language (Paperback)


List Price: $44.99
New From: $18.99 USD In Stock
Used from: $9.98 USD In Stock

Learning Python: Powerful Object-Oriented Programming (Paperback)


List Price: $54.99
New From: $34.50 USD In Stock
Used from: $6.35 USD In Stock

Share