Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Python & MySQL

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Python & MySQL

    I'm currently using python 3.1.
    I'm trying to import MySQL into python 3.1

    i tried using this code:
    >>import mysql

    however, it returned me this error:
    Traceback (most recent call last):
    File "<pyshell#0>", line 1, in <module>
    import mysql
    ImportError: No module named mysql

    can anybody help me solve this problem?
    is python 3.1 compatible with MySQL?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    NH, USA

    according to this, no, even if it was you have to install the module

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts