Home > database >  Python importMySQLdb error
Python importMySQLdb error

Time:09-24

The import MySQLdb
Traceback (the most recent call last) :
The File "<1> pyshell#", line 1, in
The import MySQLdb
The File "/Library/Frameworks/Python framework Versions/3.7/lib/python3.7/site - packages/MySQLdb/init. Py", line 18, in
The import _mysql
ImportError: dlopen (/Library/Frameworks/Python framework Versions/3.7/lib/python3.7/site - packages/_mysql. Retaining 37 m - Darwin. So, 2) : the Library not the loaded: @ rpath/libmysqlclient. 21. Dylib
Referenced the from:/Library/Frameworks/Python framework Versions/3.7/lib/python3.7/site - packages/_mysql. Retaining 37 m - Darwin. So
Reason: the image not found
  • Related