The error information is as follows:
ERROR: Command errored out with exit status 1:
command: /home/hanqing/PycharmProjects/djangoProject/hz_venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-79c7p3i8/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-79c7p3i8/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-jhaimgx4
cwd: /tmp/pip-install-79c7p3i8/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-79c7p3i8/mysqlclient/setup.py", line 15, in <module>
metadata, options = get_config()
File "/tmp/pip-install-79c7p3i8/mysqlclient/setup_posix.py", line 65, in get_config
libs = mysql_config("libs")
File "/tmp/pip-install-79c7p3i8/mysqlclient/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_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.
Solution:
sudo apt-get install libmysqlclient-dev
pip install mysqlclient
Read More:
- Mysqlclient Error: ERROR: No matching distribution found for mysqlclient/OSError: mysql_config not found
- [Solved] C# connecting to MySQL database reports an error
- How to Solve MYSQL Error: No module named MySQLdb
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- MySql Install Error: Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘
- [Solved] Python import Error: pip –upgrade Error: ERROR: Cannot uninstall ‘dnspython‘. It is a distutils installed
- Failed to load file or assembly MySql.Web Solution
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- How to Solve Embulk Error: OutputPlugin’bigquery’ is not found
- Zabbix import MySQL database error ERROR 1046 (3D000) at line 1: No database selected
- ERROR 1265 (01000): Data truncated for column ‘ENABLED’ at row 7
- mac brew install mysql ‘/tmp/mysql.sock’ (2) [How to Solve]
- Redis Delete dump.rdb Mistakenly [How to Solve]
- [Solved] Windows MYSQL Error: django.db.utils.OperationalError: (2026, ‘SSL connection error: unknown error number‘)
- MYSQL 5.7 Error Code: 1290. The MySQL server is running with the –secure-file-priv option so it..
- MySql Warning: The server quit without updating PID file error
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- [Solved] zabbix configure: error: MySQL library not found
- [Solved]Error 1054 (42s22): unknown column ‘password’ in ‘field list’ how to modify the password
- Mysql8.02/ubuntu 20 ERROR 1449 (HY000) [How to Solve]