I have had the same problem when I used easy-install to install pip for python 2.7.14. For me the solution was (might not be the best, but worked for me, and this is probably the simplest) that the folder that contained the easy-install.py
also contained a folder pkg_resources
, and i have copy-pasted this folder into the same folder where my pip-script.py
script was (python27\Scripts
).
Since then, I found it in the python27\Lib\site-packages\pip-9.0.1-py2.7.egg\pip\_vendor
folder as well, it might be a better solution to modify the pip-script.py
file to import this.