MySQL Forums
Forum List  »  Connector/Python

Re: Urgent Problem import mysql.connector
Posted by: Geert Vanderkelen
Date: March 12, 2013 06:26AM

Open the console of Sublime Text using Ctrl-~

import sys
sys.version

That will show you the Python version Sublime is using.
On Mac, Sublime Text 2 is using Python 2.6, though OS X uses Python 2.7.
(Side note: Sublime Text 3 uses Python 3.3 apparently).

So you have to install MySQL Connector/Python using the correct Python
binary.

-Geert

Geert Vanderkelen
Software Developer at Oracle

Options: ReplyQuote




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.