ModuleNotFoundError: No module named 'distro'

Shivam Kumar picture Shivam Kumar · Jun 18, 2019 · Viewed 13.5k times · Source

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'

Answer

Shivam Kumar picture Shivam Kumar · Jun 29, 2020
pip3 install distro

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