MySQL Forums
Forum List  »  Connector/Python

Configuring MySQL Connector/Python to Function with Python 3.4
Posted by: Stephen Rynas
Date: June 01, 2015 12:26PM

I installed MySQL Connector/Python. When I type in python and then enter "import mysql.connector" it works. Now that is with Python 2.7.6.

To access Python 3.4.0, I typed in python3. I then entered "import mysql.connector". In this instance, it failed with the error message: "ImportError: No module named 'mysql'".

How can Python 3.4.0 or the connector be tweaked to successfully import "mysql.connector"?

Options: ReplyQuote


Subject
Written By
Posted
Configuring MySQL Connector/Python to Function with Python 3.4
June 01, 2015 12:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.