Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: cannot import name 'Flask' from partially initialized module 'flask' (most likely due to a circular import) [duplicate]

Tags:

python

flask

from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello, World!"
like image 771
daddysushant Avatar asked Apr 04 '20 18:04

daddysushant


1 Answers

I have removed the error by just not saving the file as "flask.py"

like image 50
daddysushant Avatar answered Nov 16 '22 18:11

daddysushant