-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'Flask' #129
Comments
pip install Flask If you do not have pip installed, |
Open command prompt or terminal and type pip3 install Flask |
Just do |
IT WORKS!
followed by: pip3 install Flask==0.12.2 requests==2.18.4 python3 blockchain.py
Thank you all!! |
It did not work and error message is |
for me also it coming same error even though i installed all dependencies. can any one help me out with this Traceback (most recent call last): |
Have you named your project flask.py or Flask.py? If you have, change it. It is trying to import itself and is failing causing an import error. |
@CaydendW you are a life saver thanks bro |
Glad I could help @Abderrahmane-Boujendar |
hey guys, did all the solutions you have written, |
What's the file name for your project? |
its "API endpoints.py" |
i changed the name but still not working |
This error happen to me |
Hi Everyone,
Python N00b. I have searched issues but couldn't find a solution to the same problem as mine.
I am at STEP 3: and am getting the following error when I run python3.6 blockchain.py:
(It could be relevant that I haven't installed Postman yet.)
Traceback (most recent call last):
File "blockchain.py", line 7, in
from flask import Flask, jsonify, request
ImportError: cannot import name 'Flask'
alex@alex-XPS-13:~/Projects/python/blockchain$
Thanks for your help kindly.
The text was updated successfully, but these errors were encountered: