Broke the python easy_install how to fix

command linepython

Any idea how to fix:

-bash: /usr/bin/easy_install: No such file or directory

I kind of deleted it by accident before I realized that being behind a proxy was my issue not easy_install

Best Answer

easy_install is part of setuptools. There's a handy script to bootstrap it:

curl https://bootstrap.pypa.io/ez_setup.py -o - | python

You may need to put sudo before python if it throws a permissions error. There's a few more details here: https://pypi.python.org/pypi/setuptools#installation-instructions but that one-liner should do the trick in most cases.