pythonflaskpythonanywhere

Error running WSGI application | ModuleNotFoundError: No module named 'flask' in pythonanywhere.com


I want to deploy my project on pythonanywhere.com and tried doing it, but facing some issues. Can someone help? This is the error log

The wsgi.py file

I'm not able to understand what is the issue! please help


Solution

  • The error is "No module named flask", which means that Python cannot find the Flask framework itself. That framework is installed on PythonAnywhere by default, but newly-created virtualenvs will not have it, so my guess is that you're using a virtualenv and haven't installed Flask into it. To install it, use the "Start a bash console in this virtualenv" link on the "Web" page inside PythonAnywhere, and in the resulting console run