After I perform source activate on a virtualenv, and I perform the following: pip install requests I get this:
sudo pip install requests
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local/lib/python2.7/dist-packages
Cleaning up...
now when I run python and try to import it on python while using the virtualenv python
>>> import requests
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named requests
>>>
So then I figured, oh maybe it's looking at the wrong python, so I did a which python and which pip
(dev)sshum@mysite:~/dev/bin$ which python
/var/www/mysite/mysite/dev/bin/python
(dev)sshum@mysite:~/dev/bin$ which pip
/var/www/mysite/mysite/dev/bin/pip
However, if I deactivate and try to import these packages, it imports successfully. Not entirely sure what I'm doing wrong.