Forums

flask-mysql

Hello Guys,

i got this error:

2019-06-11 16:59:24,467: Error running WSGI application
2019-06-11 16:59:24,470: ModuleNotFoundError: No module named 'flaskext'
2019-06-11 16:59:24,470:   File "/var/www/bst2k_pythonanywhere_com_wsgi.py", line 16, in <module>
2019-06-11 16:59:24,470:     from main import app as application  # noqa
2019-06-11 16:59:24,470: 
2019-06-11 16:59:24,470:   File "/home/bst2k/pricing/main.py", line 2, in <module>
2019-06-11 16:59:24,470:     from flaskext.mysql import MySQL

i already used 'pip install --user flask-mysql'

Someone can help me out with this?

[edit by admin: formatting]

The pip command is an alias for pip2.7, which installs packages for Python 2.7. If you're using a different version of Python for your website, then you should use the corresponding pip command, for example pip3.7 for Python 3.7.

There's more information on this help page.