####Env: Ubuntu 18.04 Python Django Screenshot as bellow:  ####Solution: you need to install the relative dependencies. ``` $ sudo apt-get install libmysqld-dev $ sudo apt-get install libmysqlclient-dev ``` then you could install mysqlclient again. ``` pip install mysqlclient ``` #### References: https://stackoverflow.com/questions/47870628/oserror-mysql-config-not-found-when-trying-to-pip-install-mysqlclient-dja 最后修改:2019 年 01 月 07 日 01 : 17 PM © 著作权归作者所有