Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

Configuring MySQL Connector/Python to Function with Python 3.4 (1 reply)

$
0
0
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"?

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>