so I have Python 2.7.10 and I am trying to run a python script. However, I get ImportError: No module named requests
. I tried pip install requests
, but I got the error -bash: pip: command not found
because I had removed pip because it was for python 3.5 earlier and I want it for 2.7.
However, for some reason I can't install pip. When I do sudo easy_install pip
, I get the following:
Searching for pip
Best match: pip 9.0.1
pip 9.0.1 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
error: [Errno 2] No such file or directory: 'usr/local/bin/pip'
Is there another way for me to be able to install pip?