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
- [Django]-How to use FilePond in Django project
- [Django]-Django inline – allow adding disable editing
- [Django]-Switch to Django Custom User Model, Groups and Permissions
- [Django]-Can't get media files in heroku
- [Django]-Django — Generate form based on queryset
Source:stackexchange.com