Tags
python
Asked 3 years ago
12 Aug 2021
Views 683
Connor

Connor posted

Python - ModuleNotFoundError: No module named


import mysql.connector

Error :
import mysql.connector
ModuleNotFoundError: No module named 'mysql' in python
kord

kord
answered Aug 12 '21 00:00

maybe mysql or mysql-connector module not installed yet

install mysql and mysqlclient

pip install mysql 

and
install mysql-connector

pip install mysql-connector 


than try code

import mysql.connector
Post Answer