How to Test If You Already Have “MySQL Connector” Installed in Python


In this example, we will learn how to test if you already have “MySQL Connector” installed in Python.

Source Code

import mysql.connector
# Save this file as the demo_mysql_test.py file and execute it.
# If it was executed with no errors, "MySQL Connector" is installed.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments