pip3 install mysqlclient error Command “python setup.py egg_info” failed with error
1. Software description
- centos 8.0python3.6
2. Problem description
Use the command
pip3 install mysqlclient
error
[root@z ~]# pip3 install mysqlclient
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting mysqlclient
Using cached https://files.pythonhosted.org/packages/3c/df/59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7/mysqlclient-2.0.3.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: mysql_config: Command not found
/bin/sh: mariadb_config: Command not found
/bin/sh: mysql_config: Command not found
mysql_config --version
mariadb_config --version
mysql_config --libs
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-8k22usrq/mysqlclient/setup.py", line 15, in <module>
metadata, options = get_config()
File "/tmp/pip-build-8k22usrq/mysqlclient/setup_posix.py", line 70, in get_config
libs = mysql_config("libs")
File "/tmp/pip-build-8k22usrq/mysqlclient/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8k22usrq/mysqlclient/
3. Solutions
yum install python3-devel mysql-devel
Read More:
- [Solved] Ubuntu18.04 Install pyqt5 error: Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-92
- [Solved] Command “python setup.py egg_info” failed with error code 1
- [Solved] command “python setup.py egg_info“ failed with error code 1
- Xadmin Install Error: Command “python setup.py egg_info“ failed with error code 1 in C:\Users\ADMINI~1\AppDat
- [Solved] Run sudo python setup.py install Error: error: error in setup.cfg: command ‘build‘ has no such option ‘i18
- Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=‘/tmp/pip-cus9V0-build/setup.py
- Opencv-python Install is Stuck Error: running setup.py bdist_wheel for opencv-python
- PIP Install Mysqlclient error C1083: Cannot open include file: ‘mysql.h‘: No such file or directory
- [Solved] Python setup.py install Error: error: identifier “AT_CHECK“ is undefined
- Python Error: pip install mysql-connector-python failed
- How to Solve PIP3 error After upgrading pip3 install –upgrade pip
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- Python: How to Solve mysqlclient Install Error in Mac
- Python installs virtualenv through PIP and always reports an error: response.py“, line 438, in _error_catcher yield
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- Python 2.7: How to Install PIP
- [Solved] Unable to find “…\setuptools-40.8.0-py3.7.egg\EGG-INFO“ when adding binary and data files
- Python Use PIP to install pyinstaller Error [Solved]
- Mac install python_Levenshtein Error: error: command ‘clang‘ failed with exit status 1