easy_install: command not found

On Ubuntu 18.04 I was able to pip install python-setuptools and run easy_install by full-path'ing it:

python /usr/lib/python2.7/dist-packages/easy_install.py pip

I prefer this over installing the python-pip system package because pip is moving faster than the distros update it, so I install it from PyPI.

HTH!


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


According to the changelog easy_install was removed from the python-setuptools package.

I've got no good news for you; I've not found a solution short of updating the legacy scripts to use pip (and hoping the version pip installs works).

In your case its pip you're trying to get from easy_install, so you can probably omit the line since the version of pip in bionic is 9.0.1-2. A better change to the script might check that pip --version is less than 9.0.1 before trying to install that alternate version via easy_install.