Under Ubuntu install Mysql-Python1.2.5 problem
installation steps
1, enter the mysql-python version of the official website to download the corresponding
https://pypi.org/project/MySQL-python/
2, extract
unzip MySQL-python-1.2.5.zip
3, enters the corresponding directory installation
cd MySQL-python-1.2.5
python setup.py build
python setup.py install
Encountered pit
1、mysql_config: not found
Solution:
sudo apt-get install libmysqlclient-dev
2、_mysql.c:29:10: fatal error: Python.h: No such file or directory
Solution:
sudo apt-get install python-dev