Using the python pip installer

 
Written By Sanjir Habib On Dec-21st, 2017

Install pip first.

sudo easy_install pip

Then run pip install

pip install MyPackage