Although pip
is built-in, you still have to call pip install requests
. pip
is just the tool for downloading, not the actual item. To download, use the following:
bash-3.2$ pip install requests
Downloading/unpacking requests
Downloading requests-2.2.1-py2.py3-none-any.whl (625kB): 625kB downloaded
Installing collected packages: requests
Cleaning up...
...
You don't have to install pip
, but you still have to use it to install other items.
Answering your comment, run the pip install
again, this time with a sudo
. You should see the following message:
$ sudo pip install requests
Password:
Requirement already satisfied (use --upgrade to upgrade): requests in /Library/Python/2.7/site-packages/requests-2.1.0-py2.7.egg
Cleaning up...
Or something of the likes. Then run this:
>>> import requests
>>> requests
<module 'requests' from '/Library/Python/2.7/site-packages/requests-2.1.0-py2.7.egg/requests/__init__.pyc'>
>>>
If the import
fails, go to the above directory and search for the files.