pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-1.4.6.tar.gz (85 kB)
ERROR: Command errored out with exit status 1:
command: /root/djangoenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lq7vvr_k/mysqlclient/
setup.py'"'"'; file='"'"'/tmp/pip-install-lq7vvr_k/mysqlclient/
setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-41kmx9el
cwd: /tmp/pip-install-lq7vvr_k/mysqlclient/
Complete output (12 lines):
/bin/sh: 1: mysql_config: not found
/bin/sh: 1: mariadb_config: not found
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-lq7vvr_k/mysqlclient/
setup.py", line 16, in <module>
metadata, options = get_config()
File "/tmp/pip-install-lq7vvr_k/mysqlclient/setup_posix.py", line 61, in get_config
libs = mysql_config("libs")
File "/tmp/pip-install-lq7vvr_k/mysqlclient/setup_posix.py", line 29, in mysql_config
raise EnvironmentError("%s not found" % (_mysql_config_path,))
OSError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python
setup.py egg_info Check the logs for full command output.