Python pip fails to install anything, error: invalid command 'egg_info'


If you are facing pip fails to install anything, error: invalid command 'egg_info' in python, try following command to fix that.

Try pip install --upgrade setuptools or easy_install -U setuptools or Download ez_setup file and execute python ez_setup.py

Didn't try on windows, but working on mac perfectly.