Aug 31, 2018 · 1 min read
I tried the following command
pip3 install mysqlclient
It seems not finding the configparser so we have to install it!
pip3 install configparser
Error happens
“python setup.py egg_info” failed with error code 1
Tried method from this thread https://stackoverflow.com/questions/35991403/pip-install-unroll-python-setup-py-egg-info-failed-with-error-code-1
Not working!~~
Here comes another issue
ModuleNotFoundError: No module named ‘MySQLdb’
It seems python3 is not working with mySQL anymore
Then, I install mariaDb by homebrew and unlink the mysqlclient
More, I install pyMySQL and still it doesn’t work
Then, again, I tried
pip3 install mysqlclient
Finally it works! My code works and I don’t know why!
