On Redhat, I had the bright idea of upgrading from Python 2.6.6 to 2.7.3 by running this command:
cp /usr/bin/python2.7 /usr/bin/python
This caused far-reaching problems throughout the whole system. The most notable of these is the fact that the yum installer depends on python.
I re-downloaded 2.6.6 from online and replaced it in /usr/bin/python. Now when I run python -V
I'm running 2.6.6. However, when I run python
and type import yum
; the package can't be found.
Is it still installed somewhere on my system? How can I fix this? It's a colossal disaster.
I'm running Red Hat 4.4.7-16.