I am new to python in pydev (eclipse). I am trying to import requests and get an error:
import requests
error:
unresolved import: requests
In terminal I tried:
pip install requests
and it says
Requirement already satisfied
Also there is no error or warning when running brew doctor. What am I missing?
The issue was that the Python pointed by pydev was different from the default python in the terminal that installed requests module.
The fix was to go to preferences -> pydev -> pydev interpreter -> click on the python (wrong python path) and remove, and then click on new to add the right python installed by brew. To find the python path installed by brew type which python
in the terminal).