4

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 working

part 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'
Shivam Kumar
  • 191
  • 1
  • 5
  • 15

2 Answers2

7
pip3 install distro

This worked well for me. Solution by : @Ugo T.

Shivam Kumar
  • 191
  • 1
  • 5
  • 15
4

For Debian/Ubuntu users, when you have the error:

command not found: pip3

you have to use apt:

apt install python3-distro
ZedTuX
  • 2,859
  • 3
  • 28
  • 58