pythonmacosmysql-python

How to install flask-mysqldb on Mac OSX?


I tried

sudo pip3 install flask-mysqldb

but got the following error:

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-3l4jec4_/mysqlclient/


Solution

  • Just install it via pip install flask-mysqldb, it's python3 compatible.