I was fiddling around with Fedora, trying to uninstall a python Module. I couldn't find the one that I was looking for , so the half linux-primate brain thought of an Idea , to execute this.
sudo rm -rf /usr/lib/python3.5/site-packages/
It did it's thing , and only after that I realized how stupid I was. DNF and YUM depends on it and whenever I execute DNF i get
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
ImportError: No module named 'dnf'
And when I execute YUM
Redirecting to '/usr/bin/dnf ' (see 'man yum2dnf')
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
ImportError: No module named 'dnf'
The only thing that Works is yum-deprecated
. Everything else is in turmoil.
So how do I fix this ?