Forums

Error 'No module named flask_migrate'

I got this error:

   2018-11-07 12:59:45,112: Error running WSGI application
    2018-11-07 12:59:45,115: ModuleNotFoundError: No module named 'flask_migrate'
    2018-11-07 12:59:45,115:   File "/var/www/filipebatista24_pythonanywhere_com_wsgi.py", line 82, in <module>
    2018-11-07 12:59:45,115:     from manage.py import app as application  # noqa
    2018-11-07 12:59:45,115: 
    2018-11-07 12:59:45,116:   File "/home/filipebatista24/Micro-ERP-Python-BR-Project/manage.py", line 5, in <module>
    2018-11-07 12:59:45,116:     from flask_migrate import Migrate, MigrateCommand
    2018-11-07 12:59:45,116: ***************************************************
    2018-11-07 12:59:45,116: If you're seeing an import error and don't know why,
    2018-11-07 12:59:45,116: we have a dedicated help page to help you debug: 
    2018-11-07 12:59:45,116: https://help.pythonanywhere.com/pages/DebuggingImportError/
    2018-11-07 12:59:45,117: ***************************************************

But when i open console and run application, run naturaly, but i cannot access trhougt link. Someone can help me?!

Are you sure you have it installed for the correct Python version? Different versions of Python have different sets of installed modules. Your website is configured to use Python 3.7, so you would need to use pip3.7 to install packages. There's more information on this help page.

@giles that worked, thank you so much