Chinaunix首页 | 论坛 | 博客
  • 博客访问: 747688
  • 博文数量: 217
  • 博客积分: 2401
  • 博客等级: 大尉
  • 技术积分: 2030
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-16 06:58
个人简介

怎么介绍?

文章分类

全部博文(217)

文章存档

2023年(2)

2022年(3)

2021年(29)

2020年(12)

2019年(5)

2018年(5)

2017年(5)

2016年(3)

2015年(6)

2014年(12)

2013年(16)

2012年(9)

2011年(6)

2010年(15)

2009年(30)

2008年(59)

我的朋友

分类: Python/Ruby

2019-10-18 22:15:23

作者:黄哥
链接:
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

@ 说得对
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:

阅读(1111) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~