When trying to "pip install mysq
2018-11-25 本文已影响0人
尘梦忘归
Environment: 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