How To Install MySQL connector for Python 3 in MacOS

Recently, I have a task involving using Python with MySQL. I needed to install MySQL connector for python but all the methods I found on the internet are not applicable. I have Python 3.7 on my Mac. Here is what I did to install mysql connector for python 3:

python3 -m pip install pymysql

Hope that helps you too. I don’t make this post longer than it should be.