ModuleNotFoundError: No module named 'distro'
14,443
Solution 1
pip3 install distro
This worked well for me. Solution by : @Ugo T.
Solution 2
For Debian/Ubuntu users, when you have the error:
command not found: pip3
you have to use apt
:
apt install python3-distro
Related videos on Youtube
Author by
Shivam Kumar
Updated on June 04, 2022Comments
-
Shivam Kumar over 1 year
I am trying to install a library (https://github.com/yuanming-hu/taichi/) . I am running a script for installation(install.py). I am using python version 3.6+
I tried
pip install distro
. Still it's not workingpart of code(install.py) :
import distro dist = distro.id()
Error message:
File "install.py", line 184, in run import distro ModuleNotFoundError: No module named 'distro'
-
Ugo T. over 4 yearsHow did you run the
install.py
file ?python3 install.py
? -
Shivam Kumar over 4 yearsYes I used python3 install.py
-
Ugo T. over 4 yearsCan you try to install distro again, but this time with
pip3 install distro
? -
Shivam Kumar over 4 yearsYes It worked well!!!!
-