Forums

Pip Install error

So when I try to do "pip install --user requests" it says :

04:34 ~/RiftAnalytics (master)$ pip3.5 install --user requests Requirement already satisfied: requests in /usr/local/lib/python3.5/dist-packages

but when I try to load the website it gives there error:

ImportError: No module named 'requests'

Which python are you running your website with? could it be not python 3.5? You can see this from the webapps tab

it is 3.5

Are you using a virtualenv? If so you need to activate your virtualenv and pip install into that, eg

workon my-virtualenv-name
pip install requests

Thanks! that worked.

for me i use these commands sudo -H pip install request it works like a charm

sudo does not work on PythonAnywhere