My guess is your environment's "python" command launched python3.x. If so, easy_install is installed into the python version you selected, so when you did this:
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
you probably should have specified python2.7 like this:
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python2.7