I installed Python using Homebrew, I installed Pip and then using Pip I downloaded the Requests module.
Just to double check I tried to install it again and got a confirmation in terminal that it was already installed:
Requirement already satisfied: requests in /usr/local/lib/python2.7/site-packages
I then tried to write a pretty simple script to call Git and see if I can get a response. But when I run it I get an error message. Here's the script and message:
import requests
response = requests.get('https://api.github.com/events')
print (response)
Message:
PythonTesting/main.py", line 5, in <module>
import requests
ImportError: No module named requests
pip install -U requests?