close

[Fixed] ImportError: No module named flask

Today We are Going To Solve ImportError: No module named flask in Python. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

How to Fix ImportError: No module named flaskThis Error?

  1. How to Fix ImportError: No module named flaskThis Error?

    To Fix ImportError: No module named flaskThis Error just For python 3. This solution is for python 3. If you are using python 3 then just run the below command: pip3 install flask

  2. ImportError: No module named flask

    To Fix ImportError: No module named flaskThis Error just Run the command. You can try this to solve your error. sudo -H pip install flask

Solution 1 : For python 3

This solution is for python 3. If you are using python 3 then just run the below command:

pip3 install flask

Solution 2 : Run the command

You can try this to solve your error.

sudo -H pip install flask

Solution 3 : Use venv/scripts/activate

Try this to solve your error.

$ venv/scripts/activate

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read This Solutions

Leave a Comment