Installation
Requirements
- Python 3.6 or higher
mysql-connector-python(installed automatically as a dependency)- A running MySQL or MariaDB server
Install via pip
pip install easymysql If you have both Python 2 and Python 3 installed, use:
pip3 install easymysql Verify the installation
python -c "from easymysql.mysql import mysql; print('EasyMySQL installed OK')"