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
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3