[Django]-Unable to import rest_framework_simplejwt

5👍

change your interpreter to something else and then choose your virtual env back again. it will work 100%. After installing the simplejwt the interpreter needs to be reset which is achieved by changing the env to something else and back to the virtual env you use normally

select interpreter

1👍

This stems from your Python interpreter. If you are using a virtual environment, please try to select a different venv. In my case

1- I’m using my own venv and import is not successful:

enter image description here

2- However, when I’m using the global python interpreter, import is okay:

enter image description here

The reason that it works like that probably we both have something wrong in our venvs.

Leave a comment