import flask could not be resolved from source pylance

  1. Firstly, create a virtual environment on your terminal.
  2. Then install Flask by running pip install flask.
  3. After installing, press CTRL+SHIFT+P.
  4. Search for Python Interpreter.
  5. Select your virtual environment.

The problem will be fixed. I have also faced the same issue, but I resolved it by following this procedure.

Leave a Comment

File not found.