Python – install pip on 64bit Windows

To install pip on Win­dows, you need to first install its pre­de­ces­sor – easy install. How­ev­er, if you’re using a 64-bit dis­tri­b­u­tion of  Python then the .exe installers here will give you this error when you run it:

image

This is due to a dis­tu­tils installer com­pat­i­bil­i­ty issue, but all’s not lost, you just need to down­load the ez_setup.py and run it, it will then down­load the appro­pri­ate .egg file and install it for you.

You then need to add the Scripts fold­er in your Python dis­tri­b­u­tion, e.g. C:\Python27\Scripts to the Win­dows path, and open up a DOS prompt and run easy_install pip and voila!