KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am running the following code from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run(host='0.0.0.0', port=80, debug=True) and getting the following error Traceback (most recent call last): File "test.py", line 1, in <module> from flask import Flask File "/home/pi/programs/flask.py", line 1, in <module> from flask import Flask ImportError: cannot import name Flask I have tried installing flask through various methods , but still the problem persists also, is there any alternative to flask???
Tags (comma-separated)
Save Edits
Cancel