Attribute Error:module 'mysql' Has No Attribute 'connector'
I'm running MacOS Mojave, trying to connect to MySQL using mysql-python connector, through spyder ide (python3) But I am getting the error: File '/Users/admin/Desktop/omgboi.py', l
Solution 1:
How did you installed Connector/Python?
The PyPI package mysql-connector
is deprecated, you should use the official mysql-connector-python
.
The easiest and recommended way is using pip
:
pip install mysql-connector-python
More details about installation here https://dev.mysql.com/doc/dev/connector-python/8.0/installation.html
Post a Comment for "Attribute Error:module 'mysql' Has No Attribute 'connector'"