Error: no matching distribution found for mysqlclient solution
Red hat/CentOS system
sudo yum install python3-devel mysql-devel
Debian/Ubuntu system
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
Install mysqlclient
pip isntall mysqlclient
OSError: mysql_config not found Solution
ERROR: Command errored out with exit status 1:
command: /usr/local/python3/bin/python3.9 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ubc4i40h/mysqlclient_b88fc9c0c9484503a326b0399e91838e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ubc4i40h/mysqlclient_b88fc9c0c9484503a326b0399e91838e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-me3mh3fr
cwd: /tmp/pip-install-ubc4i40h/mysqlclient_b88fc9c0c9484503a326b0399e91838e/
Complete output (10 lines):
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ubc4i40h/mysqlclient_b88fc9c0c9484503a326b0399e91838e/setup.py", line 17, in <module>
metadata, options = get_config()
File "/tmp/pip-install-ubc4i40h/mysqlclient_b88fc9c0c9484503a326b0399e91838e/setup_posix.py", line 47, in get_config
libs = mysql_config("libs_r")
File "/tmp/pip-install-ubc4i40h/mysqlclient_b88fc9c0c9484503a326b0399e91838e/setup_posix.py", line 29, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
OSError: mysql_config not found
Ubuntu system
sudo apt-get install libmysqlclient-dev
centOS7
yum install mysql-devel gcc gcc-devel python-deve
Read More:
- C# Connect MYSQL Error: MySql.Data.MySqlClient.MySqlException:“SSL Connection error.”
- [Solved] zabbix configure: error: MySQL library not found
- How to Solve Error: mysqlclient 1.4.0 or newer is required; you have 0.10.0
- [Solved] MYSQL Error: ERROR! MySQL server PID file could not be found!
- How to Solve MYSQL Error: No module named MySQLdb
- IDEA maven Config MYSQL Connection Error: Could not create connection to database server.
- MySQL startup error: vcruntime140_1.dll cannot be found, unable to continue code execution
- [Solved] ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm
- How to Solve Embulk Error: OutputPlugin’bigquery’ is not found
- MySql Install Error: Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘
- [Solved] no all patern found! & Error on Generate Activation Code…
- Centos7 Initialize mysql Error: Could not open file ‘/usr/local/mysql/log/mysqld.log‘ for error logging: Per
- Mysql Flashback Warning: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe
- [Solved] Django configures MySQL Error: NameError: name ”_MySQL ‘is not defined
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- How to Solve can‘t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock‘