pip3 install mysqlclient 遇到了如下错误
ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gaecn_vj/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gaecn_vj/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-gaecn_vj/mysqlclient/pip-egg-info cwd: /tmp/pip-install-gaecn_vj/mysqlclient/ Complete output (15 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 "
sudo apt install mysql-client
sudo apt install libmysqlclient-dev python3-dev