Upgraded to Ubuntu 16.04 now MySQL-python dependencies are broken

后端 未结 8 447
误落风尘
误落风尘 2021-01-01 10:26

I just upgraded my Ubuntu install to 16.04 and this seems to have broken my mysql dependencies in the MySQL-python package.

Here is my error message:



        
相关标签:
8条回答
  • 2021-01-01 10:56

    My problem was that I was using wheelhouse from old OS.

    The problem was solved when I uninstalled/installed the package or updated wheelhouse...

    From docs:

    http://mysql-python.sourceforge.net/FAQ.html#importerror

    This means you have a version of MySQLdb compiled against one version of MySQL, and are now trying to run it against a different version. The shared library version tends to change between major releases.

    Solution: Rebuilt MySQLdb, or get the matching version of MySQL.

    0 讨论(0)
  • 2021-01-01 10:56

    Steps:

    1. search mysql path

      which mysql

      O/p : /opt/mysql/

    2. create Symbolic Links to usr/lib

      sudo ln -s /opt/mysql/lib/mysqlclient.so.20 /usr/lib

    Note: mysqlclient.so.20 will be as per your version

    0 讨论(0)
提交回复
热议问题