Not able to import flask
whenever i try to run
from flask import Flask it gives me this error
i dont know why this happens. I even tried manually installing flask from the package manager.
The replit package includes it's own Flask fork, which is conflicting with Flask. Instead of using
from flask import Flask use
from replit.web import App and use
app = App(__name__) instead of
app = Flask(__name__). This flask fork adds a few new features like login with replit for your site. See its docs here https://replit-py.readthedocs.io/en/latest/index.html
I made a post about this and another issue that you may have.