centos 下安装python3 的MySQLdb
centos 下安装python3 的MySQLdb
1 解决python下安装 mysql python 库
MySQL-python is not supported on python3 instead of this you can use mysqlclient
If you are on fedora/centos/Red Hat install following package
yum install python3-devel
pip install mysqlclient
2. 解决Python.h找不到问题
参考: https://blog.51cto.com/11676589/1815295
yum install python3 -devel.x86_64
3 解决Python 3 ImportError: No module named 'ConfigParser'
参考下 https://stackoverflow.com/questions/14087598/python-3-importerror-no-module-named-configparser
In Python 3,ConfigParserhas been renamed toconfigparserfor PEP 8 compliance. It looks like the package you are installing does not support Python 3.
我们只需要努力,然后剩下的交给时间。