设为首页 加入收藏

TOP

mysql-databaseython 3.4.0 with MySQL database
2017-09-30 17:36:41 】 浏览:6644
Tags:mysql-databaseython 3.4.0 with MySQL database

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

           
<iframe id="ados_frame_adzerk145545840_943471" frameborder="0" scrolling="no" width="728" height="90">
         up vote 20down 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 vote 28down 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.

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇python操作mysql 下一篇python入门第一天作业。讲师写的..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目