Hi! I tried to upgrade Python 3.7 to 3.8, but now when I try to run DNF I get this:
Traceback (most recent call last):
File “/usr/bin/dnf”, line 57, in
from dnf.cli import main
ModuleNotFoundError: No module named ‘dnf’
I installed 3.8, then did this:
sudo alternatives --install /usr/bin/python python /usr/bin/python3.8 1
sudo alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
and now I get that error. I tried undoing it like this but it didn’t work:
sudo alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
sudo alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1