python - How to install MySQLdb with Anaconda on Mac -


i have anaconda distribution python version 2.7. tried several commands such sudo , pip nothing seems work. told in shell installation complete every time try send in console "import mysqldb" 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 install it?

consider using pymysql
can install by

conda install pymysql 

fyi what pymysql , how differ mysqldb? can affect django deployment?


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -