码迷,mamicode.com
首页 > 数据库 > 详细

mysql-databaseython 3.4.0 with MySQL database

时间:2016-08-16 07:03:20      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:

Phttp://shttp://stackoverflow.com/questions/23376103/python-3-4-0-with-mysql-databasetackoverflow.com/questions/23376103/python-3-4-0-with-mysql-databaseython 3.4.0 with MySQL database

           
技术分享
         up vote20down votefavorite
7

I have installed Python version 3.4.0 and I would like to do a project with MySQL database. I downloaded and tried installing MySQLdb, but it wasn‘t successful for this version of Python. Any suggestions how could I fix this problem and install it properly?

share|improve this question
 
   

9 Answers                                 9

         up vote28down voteaccepted

MySQLdb does not support Python 3 but it is not the only MySQL driver for Python.

mysqlclient is essentially just a fork of MySQLdb with Python 3 support merged in (and a few other improvements).

PyMySQL is a pure python MySQL driver, which means it is slower, but it does not require a compiled C component or MySQL libraries and header files to be installed on client machines. It has Python 3 support.

mysql-databaseython 3.4.0 with MySQL database

标签:

原文地址:http://www.cnblogs.com/kungfupanda/p/5774902.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!