本文翻译自:How to install Python MySQLdb module using pip?
如何使用pip为Python安装MySQLdb模块?
#1楼
参考:https://stackoom.com/question/1KwJM/如何使用pip安装Python-MySQLdb模块
#2楼
It's easy to do, but hard to remember the correct spelling: 这很容易,但是很难记住正确的拼写:
pip install mysqlclient
If you need 1.2.x versions (legacy Python only), use pip install MySQL-python
如果您需要1.2.x版本(仅适用于旧版Python),请使用pip install MySQL-python
Note: Some dependencies might have to be in pla