How to fix Python ModuleNotFoundError: No module named 'osmium'

Problem:

When you running your python script, you see an error message like

Traceback (most recent call last):
  File "run.py", line 2, in <module>
    import osmium as osm
ModuleNotFoundError: No module named 'osmium

Solution

Install pyosmium using

pip install osmium

or

pip3 install osmium