安装MySQL-python 的问题
1.CentOS下载mysql-devel安装
yum install mysql-devel
2.Ubuntu下不叫mysql-devel,而是叫libmysqld-dev
sudo apt-get install libmysqld-dev
centos安装 python-dev包提示No package python-dev available:
出现此问题的原因是python-dev的包在centos的yum中不叫python-dev,而是python-devel.
所以使用下面的命令即可安装python-dev:
yum install python-devel