Upgraded to Ubuntu 16.04 now MySQL-python dependencies are broken
I had this issue on updating to stretch. To fix it I updated my requirements.txt:
mysqlclient==1.4.2.post1
So either update that manually or pip install --upgrade mysqlclient
I had the same issue. I uninstalled and reinstalled MySQL-python:
pip uninstall MySQL-python
pip install MySQL-python
I ended up finding the solution to my problems with pip install --no-binary MySQL-python MySQL-python
as stated in this thread : Python's MySQLdb can’t find libmysqlclient.dylib with Homebrewed MySQL
Thank for Largaroth. If you use mysqlclient
on Ubuntu 16.04 and have error:
ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
You can fix:
sudo -H pip uninstall mysqlclient
sudo -H pip install --no-binary mysqlclient mysqlclient