Error loading MySQLdb module: libmysqlclient.so.20: cannot open shared object file: No such file or directory

后端 未结 6 892
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 04:02

I had a running django project and for some reasons I had to remove the current mysql version and install a different MySQL version in my machine.

But now when I am try

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 04:36

    Use the following commands:

    pip uninstall mysql-python
    pip install mysql-python
    

    In my case it work because it searches from the complied files.

提交回复
热议问题