ImportError: No module named 'MySQL'

后端 未结 17 1722
轮回少年
轮回少年 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:14

    I have found another reason: If your program file's path contains space or special characters, then you'd get this error.

提交回复
热议问题