更新时间:2021-08-20 22:27:45
在Python 3.4中不支持 - 您需要使用替代驱动程序
MySQLdb is not supported on Python 3.4 - you need to use an alternative driver
python-dev
和 mysql-dev
是apt包系统的包名称;这是由debian,ubuntu及其克隆/变体使用的。
python-dev
and mysql-dev
are package names for the apt package system; which is used by debian, ubuntu and its clones/variants.
在CentOS上需要rpm等效的包。
On CentOS you need the rpm-equivalent packages.
您应该为MySQL开发头安装 mysql-devel
您还需要一个开发工具链 - 最简单的安装方式是发出 sudo yum groupinstall开发工具
。
You should install mysql-devel
for the MySQL development headers; you also need to have a development toolchain - the easiest way to install that is to issue sudo yum groupinstall "Development Tools"
.
现在,如果您也使用yum安装Python,则需要安装 python-devel
。
Now, if you installed Python using yum as well, you need to install python-devel
.