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 have found another reason: If your program file's path contains space or special characters, then you'd get this error.