Trying to store values in sql using Python Cgi script, I have downloaded the Connector/Python for MySQL successfully. I used the following code in Python's shell to test my connection:
import mysql.connector
I received the following error message:
ModuleNotFoundError: No module named 'mysql'
when trying to import MySQL.connector.
Just try this command:
pip install mysql-connector-python-rf
then try your command again, it'll run correctly.
try below command
pip install mysql-connector
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With