I am using Python version 2.5.4 and install MySQL version 5.0 and Django. Django is working fine with Python, but not MySQL. I am using it in Windows Vista.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Django __str__ returned non-string (type NoneType)
- Evil ctypes hack in python
...and remember there is no MySQLdb for python3.x
(I know the question is about python2.x but google rates this post quite high)
EDIT: As stated in the comments, there's a MySQLdb's fork that adds Python 3 support: github.com/PyMySQL/mysqlclient-python
mysqldb
is a module for Python that doesn't come pre-installed or with Django. You can downloadmysqldb
here.Try this.
Thanks to derevo but I think there's another good way for doing this:
pypm install mysql-python
I think
pypm
is more powerful and reliable thaneasy_install
.cd
.easy_install MySQL-python
On OSX these commands worked for me