MySQL-python Installation Error: "mysql_config not found"
Attempting to install MySQL-python on Ubuntu/Linux Box may encounter an error message indicating that "mysql_config: not found." This error arises due to a missing MySQL development library.
To resolve this issue, it is recommended to utilize the distribution's repository on Ubuntu. Install python-mysqldb using the following command:
sudo apt-get install python-mysqldb
If installing using pip is desired, consider the following steps:
sudo apt-get install build-essential python-dev libmysqlclient-dev
sudo pip uninstall MySQL-python
sudo pip install MySQL-python
The above is the detailed content of How to Fix \'mysql_config not found\' Error When Installing MySQL-python on Ubuntu/Linux?. For more information, please follow other related articles on the PHP Chinese website!