Answer the question
In order to leave comments, you need to log in
I can't install Mysql Connector, it gives an error "ImportError: No module named 'mysql'", how to fix it?
I downloaded the MySQL Connector msi file from the off site and ran it - everything seemed to be fine. After I tried to execute the following command in python: it import mysql.connector
gives an error
I can’t understand what’s wrong, I’m just starting to code.
PS: MySQL 5.7.9, installed as Chukchi through unpacking the archive, everything seems to be working fine. ImportError: No module named 'mysql'
Answer the question
In order to leave comments, you need to log in
For MySQL on Windows, use PyMySQL . It is easily installed via pip:pip install mysqlclient
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question