Forums

Django Rest framework

Hi ! I am trying to install django restframework on pythoneverywhere, but I am not able to do so. Every time I run it says ModuleNotFoundError: No module named 'rest_framework' . Please help me

Hi there, my guess is that you've installed it for the wrong version of Python.

I'd recommend using a virtualenv, that helps to avoid this sort of mistake, and gives you full control over your environment. More info here:

If you are on the right virtual environment activated, is the command you tried pip install djangorestframework ?

That would be the right command, yes.