【发布时间】:2016-03-14 03:02:08
【问题描述】:
我想为 python 3 使用mysql-connector 库。我可以改用pymysql,但mysql-connector 已经有一个连接池实现,而pymysql 似乎没有。所以我要写的代码会更少。
但是,当我这样做时
$ pip3 search mysql-connector
我发现这 3 个库是可用的:
mysql-connector-repackaged - MySQL driver written in Python
mysql-connector-python-rf - MySQL driver written in Python
mysql-connector-python - MySQL driver written in Python
这很令人困惑。有谁知道我应该使用哪一个以及为什么?
感谢您的帮助。
【问题讨论】:
-
pipreqs 搞错了。 github.com/bndr/pipreqs/issues/261
标签: python mysql python-3.x pip mysql-connector-python