Import "flask_mysqldb" could not be resolved Pylance(reportMissingImports)

  flask, flask-mysql, python

Uhh, well I get this error

Import "flask_mysqldb" could not be resolved Pylance(reportMissingImports)

And I don’t really know if I’m missing something because when I try to install stuff it says "requirement already fulfilled" and I’m panicking because I don’t know what I’m doing wrong. This is the actual code I’m working with but I can’t use anything related to databases because the 2nd line doesn’t work:

from flask import Flask, render_template, request, redirect, url_for, flash

from flask_mysqldb import MySQL

Source: Python Questions

LEAVE A COMMENT