ImportError: No module named 'MySQL'

后端 未结 17 1735
轮回少年
轮回少年 2020-12-12 17:40

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

17条回答
  •  星月不相逢
    2020-12-12 18:35

    run

    pip list 
    

    to see list of packages you have installed. If it has mysql-connector-python then that is fine.

    Remember not to name your python script file as mysql.py

提交回复
热议问题