I managed to create an issue with Python by using yum (multiple installs) and I want to fully reinstall Python.
Yum used to work just fine, but now the issue is this:
[root@server23 Imaging-1.1.7]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.5 (r265:79063, Apr 9 2010, 15:16:58)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
If you cannot solve this problem yourself, please go to
the yum faq at:
Also this error when trying to compile python-imaging:
_imaging.c:75:20: error: Python.h: No such file or directory
Here is the Python stuff I have:
[root@server23 Imaging-1.1.7]# whereis python
python: /usr/bin/python2.6 /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.6 /usr/lib/python2.4 /usr/local/bin/python2.6-config /usr/local/bin/python2.6 /usr/local/bin/python /usr/local/lib/python2.6 /usr/include/python2.6 /usr/include/python2.4 /usr/share/man/man1/python.1.gz
How should I go about removing everything for Python and reinstalling Python 2.6 normally?