Good afternoon.
After changing the Python version in CentOS 6.9, I can no longer run yum. How do I restore this module without having to reinstall the entire operating system?
See screenshot attached.
HELP! No module named yum
- leonardopereira
- Posts: 1
- Joined: 2018/07/23 20:48:25
HELP! No module named yum
- Attachments
-
- error yum screenshot
- error yum.png (37.24 KiB) Viewed 1527 times
Re: HELP! No module named yum
You cannot update the system python in CentOS or lots of things will break. You now need to undo everything that you did - hopefully you installed into /usr/local rather than /usr and you can just make uninstall or rm the various files/directories, run ldconfig and hash -r. If not then you will have to undo what you did then download all the packages that appear in the output from rpm -Va and manually install them.
If you need newer python versions then look at either EPEL or IUS both of which provide parallel installs of various python versions that can coexist with the system python and not entirely screw your system.
If you need newer python versions then look at either EPEL or IUS both of which provide parallel installs of various python versions that can coexist with the system python and not entirely screw your system.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke