BabyCoder
BabyCoder

Reputation: 3

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

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

Upvotes: -1

Views: 376

Answers (2)

Muhammad Safwan
Muhammad Safwan

Reputation: 1024

use

pip install PyJWT

and import like this

import jwt

Upvotes: 0

Matteo Pasini
Matteo Pasini

Reputation: 2022

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"

Upvotes: 0

Related Questions