Estou tentando instalar a extensão do Flask-MySqlDB para poder começar a parte 2 do curso de Flask. Quando executo o comando no meu MAC a instalação falha com os códigos abaixo:
pvmwcacafn002:jogoteca marcelomassambani$ pip install flask-mysqldb Collecting flask-mysqldb Using cached Flask-MySQLdb-0.2.0.tar.gz (2.1 kB) Requirement already satisfied: Flask>=0.10 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from flask-mysqldb) (0.12.2) Collecting mysqlclient Using cached mysqlclient-2.0.1.tar.gz (87 kB) ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jx/1bldtdg91n9c8b52k742g8sr0000gn/T/pip-install-w3xotilk/mysqlclient/setup.py'"'"'; file='"'"'/private/var/folders/jx/1bldtdg91n9c8b52k742g8sr0000gn/T/pip-install-w3xotilk/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/jx/1bldtdg91n9c8b52k742g8sr0000gn/T/pip-pip-egg-info-wf36t7y8 cwd: /private/var/folders/jx/1bldtdg91n9c8b52k742g8sr0000gn/T/pip-install-w3xotilk/mysqlclient/ Complete output (12 lines): /bin/sh: mysql_config: command not found /bin/sh: mariadb_config: command not found /bin/sh: mysql_config: command not found Traceback (most recent call last): File "", line 1, in File "/private/var/folders/jx/1bldtdg91n9c8b52k742g8sr0000gn/T/pip-install-w3xotilk/mysqlclient/setup.py", line 15, in metadata, options = get_config() File "/private/var/folders/jx/1bldtdg91n9c8b52k742g8sr0000gn/T/pip-install-w3xotilk/mysqlclient/setup_posix.py", line 65, in get_config libs = mysql_config("libs") File "/private/var/folders/jx/1bldtdg91n9c8b52k742g8sr0000gn/T/pip-install-w3xotilk/mysqlclient/setup_posix.py", line 31, in mysql_config raise OSError("{} not found".format(mysqlconfig_path))
OSError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Como resolvo esse problema?