Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

ImportError: No module named 'MySQL'

Asked by Asistha Pandey Jun 20, 2021 1.4K views 1 answer
Share

About this question

FYI, I have already installed the Connector/Python for MySQL successfully. I used the below code in the shell to test my connection:

import mysql.connector

I received the following error message ”importerror: no module named mysql.connector”:

Traceback (most recent call last):

  File "", line 1, in

    import mysql.connector

ImportError: No module named 'mysql'

Kindly help, how to resolve it.


Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.