How to fix "ModuleNotFoundError: No module named 'service-directory'"

By Where is my Python module

python
pip
service-directory

You must first install the package before you can use it in your code. Run the following command to install the package and its dependencies.

pip install service-directory