I have the anaconda distribution with python version 2.7. I tried several commands such as sudo and pip but nothing seems to work. I am told in the shell that the installation is complete but every time i try to send in the console "import MySQLdb" i get the following error:
Traceback (most recent call last):
File "", line 1, in import MySQLdb
File "build/bdist.macosx-10.5-x86_64/egg/MySQLdb/init.py", line 19, in
File "build/bdist.macosx-10.5-x86_64/egg/_mysql.py", line 7, in
File "build/bdist.macosx-10.5-x86_64/egg/_mysql.py", line 6, in bootstrap
ImportError: dlopen(/Users/andreasportelli/.python-eggs/MySQL_python-1.2.5-py2.7-macosx-10.5-x86_64.egg-tmp/_mysql.so, 2): Library not loaded: libssl.1.0.0.dylib Referenced from: /Users/andreasportelli/.python-eggs/MySQL_python-1.2.5-py2.7-macosx-10.5-x86_64.egg-tmp/_mysql.so Reason: image not found
What should I do to install it?