[Python] ImportError: No module named 'MySQL'

Discussão em 'Python' iniciado por Stack, Novembro 28, 2024.

  1. Stack

    Stack Membro Participativo

    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:

    Traceback (most recent call last):
    File "<pyshell#8>", line 1, in <module>
    import mysql.connector
    ImportError: No module named 'mysql'


    I can't figure out why MySQL is not being recognized.

    Continue reading...

Compartilhe esta Página