ModuleNotFoundError: No module named 'dnf'

3.8k Views Asked by At

When I point my python3 bin to /usr/bin/python3.6 I get below error:

[dgaikwad@localhost iqe-core]$ dnf
Traceback (most recent call last):
  File "/usr/bin/dnf", line 57, in <module>
    from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'
[dgaikwad@localhost iqe-core]$ 

It is works fine when python3 pointed to /usr/bin/python3.7

Can someone please help me to solve it?

0

There are 0 best solutions below