Django MySQLdb version doesn't match _mysql version Ubuntu

前端 未结 2 1669
一整个雨季
一整个雨季 2020-12-20 20:22

I\'m trying to get a django site deployed from a repository. I was almost there, and then changed something (I\'m not sure what!!) and was back to square one.

Now I\

2条回答
  •  心在旅途
    2020-12-20 21:05

    I got the same problem after installing mysql-python using pip. Seems to be an error in the pip package. I solved it by pip uninstall'ing it again, after which i downloaded and installed the package manually like this:

    • # download from http://sourceforge.net/projects/mysql-python
    • $ tar xfz MySQL-python-1.2.3.tar.gz (replace with newest version)
    • $ cd MySQL-python-1.2.3
    • $ python setup.py build
    • $ sudo python setup.py install

提交回复
热议问题