ubuntu16.04安装flask-mysqldb失败

报错如下:

EnvironmentError: mysql_config not found

----------------------------------------

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


解决:

sudo apt-get install libmysqlclient-dev

sudo updatedb

locate mysql_config

你可能感兴趣的:(ubuntu16.04安装flask-mysqldb失败)