I am following the django tutorial, Many have asked the question but I think my situation is bit unique because after installing python-mysql I still get this error when I try t
My libmysqlclient.18.dylib was located in /usr/local/mysql/lib/ but my system was looking for it in /usr/lib/. I ended up creating a symbolic link of libmysqlclient.18.dylib in /usr/lib which fixed the problem.
Open your shell.
sudo -s
ls /usr/local/mysql/lib/ | grep libmysqlclient.18.dylib
You should see the file:
libmysqlclient.18.dylib
If not, search your system for the location of the file:
find / -name libmysqlclient.18.dylib
Enter the following command in your shell:
ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
If your libmysqlclient.18.dylib file wasn't located in /usr/local/mysql/lib replace the first path with the proper path to libmysqlclient.18.dylib.
Hopefully that helps.