Search code examples
python-3.xflaskmysql-python

I run into the following error when trying to install MySQL connector for Flask


I try to run pip3 install flask_mysqldb command but it throws me the following error this the error screenshot. Any suggestions on how to resolve the error?

Thanks.

I want to install a python library to connect mysqldb with my flask web application


Solution

  • There are dependencies needed to install flask_mysqldb

    On https://pypi.org/project/Flask-MySQLdb/ say:

    "Quickstart

    First, you may need to install some dependencies for mysqlclient if you don't already have them, see here."

    Also, there are similar questions on StackOverflow, like:

    How to install Flask-mysqldb for Python?

    Try to not link to images with error messages, copy the error here