作者:黄哥
链接:
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
@ 说得对
MySQL-python 不支持Python 3。Python 3 可以安装下面的一些库,有多种选择,自己选择一个。
这种问题,搜索即可解决的问题,提问者没有掌握用google。
There are currently a few options for using Python 3 with mysql:
-
Officially supported by Oracle
-
Pure python
-
A little slow
-
Not compatible with MySQLdb
-
Pure python
-
Faster than mysql-connector
-
Almost completely compatible with MySQLdb, after calling pymysql.install_as_MySQLdb()
-
fork of pymysql with optional C speedups
-
Django's recommended library.
-
Friendly fork of the original MySQLdb, hopes to merge back some day
-
The fastest implementation, as it is C based.
-
The most compatible with MySQLdb, as it is a fork
benchmarks here:
阅读(1177) | 评论(0) | 转发(0) |