pip3 install mysqlclient 报错 “/bin/sh: 1: mysql_config: not found”的解决方法 执行 sudo apt-get install libmysqlclient-dev, 然后执行 pip3 install mysqlclient 成功。