Flask-jwt installed but it's showing Not Found / Not installed

308 Views Asked by At

I have installed flask-jwt in VS Code using "pip install Flask-JWT" but in my code, it's showing Not Installed. How to solve the issue?

Click here to see the issue

2

There are 2 best solutions below

1
Matteo Pasini On

From the screenshot I see that you are using virtualenv, have you configured VS Code to run the application through the version of python installed with virtualenv? If not, take a look at this link: https://code.visualstudio.com/docs/python/environments

Probably you need to configure the right interpreter in the setting.json file by adding:

python.pythonPath: "Scripts\\python.exe"
1
Muhammad Safwan On

use

pip install PyJWT

and import like this

import jwt