J'ai installé mysql via XAMPP.
Lorsque j'essaie pip install mysqlclient
J'obtiens cette erreur
MBP-of-admin:django_project aanto$ pip install mysqlclient
Collecting mysqlclient
Using cached https://files.pythonhosted.org/packages/f4/f1/3bb6f64ca7a429729413e6556b7ba5976df06019a5245a43d36032f1061e/mysqlclient-1.4.2.post1.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/jw/4xk541g14mq3ljnws61fbt_m0000gn/T/pip-install-0u41r1pb/mysqlclient/setup.py", line 16, in <module>
metadata, options = get_config()
File "/private/var/folders/jw/4xk541g14mq3ljnws61fbt_m0000gn/T/pip-install-0u41r1pb/mysqlclient/setup_posix.py", line 51, in get_config
libs = mysql_config("libs")
File "/private/var/folders/jw/4xk541g14mq3ljnws61fbt_m0000gn/T/pip-install-0u41r1pb/mysqlclient/setup_posix.py", line 29, in mysql_config
raise EnvironmentError("%s not found" % (_mysql_config_path,))
OSError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jw/4xk541g14mq3ljnws61fbt_m0000gn/T/pip-install-0u41r1pb/mysqlclient/
Comment puis-je résoudre ce problème ?