
正文
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 No problem. We won't show you that ad again. Why didn't you like it?- Uninteresting
- Misleading
- Offensive
- Repetitive
- Other
Oops! I didn't mean to do this.

up vote20down votefavorite7 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?
python mysql python-3.x mysql-python python-3.4 share|improve this question edited Jul 23 '14 at 2:43
Cristian Ciupitu9,59932845 asked Apr 29 '14 at 22:01
Srdjan Ristic1961312
add a comment |
9 Answers 9active oldest votes
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.
No problem. We won't show you that ad again. Why didn't you like it?
- Uninteresting
- Misleading
- Offensive
- Repetitive
- Other
Oops! I didn't mean to do this.

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? python mysql python-3.x mysql-python python-3.4
| |||
add a comment | |
9 Answers 9active oldest votes
active oldest votes
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. |







