[Django]-Django on CentOS

0👍

You can actually manually install the mysql-python adapters without compiling anything, if you can’t get a recent package from the centos repos. Just download the mysql-python tarball (from the sourceforge site). In the tar ball are all kinds of setup scripts, readme’s, etc. You can either run the ez_setup file, the setup file, or, just copy the MySQLdb directory to somewhere in your pythonpath. I think on centos, /usr/lib/python2.4/site-packages/ works.

Good luck!

👤Alex

0👍

You can install centos’ package python-setuptools and then using easy-install in it you can install the latest version of mysql-python like this

easy_install mysql-python

Leave a comment