How to fix "ModuleNotFoundError: No module named 'odoo9-addon-res-partner-affiliate'"

By Where is my Python module

python
pip
odoo9-addon-res-partner-affiliate

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 odoo9-addon-res-partner-affiliate