Python 2 and Python 3 on the same maschine install MySQL Connector
Asked by
George
Hello
I have a little question. I have FreeBSD 8 server, installed Python 2.7.3 and Python 3.3.0 on it.
Then I installed MySQL Connector/Python v 1.0.9 (from dev.mysql.com ) with instructions.
When i run Python 2 and use: "import mysql.connector", everything is ok. But with Python 3 i have an error:
>>> import mysql.connector
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "./mysql/
from mysql.connector
File "./mysql/
except Exception, err:
SyntaxError: invalid syntax
Can someone help to solve this issue? Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- George
- Solved:
- Last query:
- Last reply:
To post a message you must log in.