Pip install mysql-python fails with EnvironmentError: mysql_config not found
nd python setup.py egg_info failed with error code 1 Storing complete log in /home/zjm1126/.pip/pip.log (mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install mysql-python Downloading/unpacking mysql-python Running setup.py egg_info for package mysql-python sh: mysql_config: not found Traceback (most recent call last): File "
What can I do to resolve this one?
It seems that you are receiving mysql_config not found on your system instantly. To get rid of this error ensure that the mysql_config is really installed on your system.
For example on the Debian/Ubuntu you must install the package:
sudo apt-get install libmysqlclient-dev
Maybe the mysql_config is not there in your path, it will be the case when you compile by yourself the mysql suite.
For recent versions of Debian/Ubuntu, it is:
sudo apt install default-libmysqlclient-dev