I got this from this link: I am not able to install easy_install in my ubuntu.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-setuptools
If that doesn't work, try this:
sudo apt-get install python-pip
sudo pip install <pypi-package>
Credits to: https://askubuntu.com/users/157039/m-tarun and https://askubuntu.com/users/20837/timo