Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9192283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:53:05+00:00 2026-06-17T20:53:05+00:00

Possible Duplicate: How to install MySQLdb (Python data access library to MySQL) on Mac

  • 0

Possible Duplicate:
How to install MySQLdb (Python data access library to MySQL) on Mac OS X?

Although this question has been asked before here, the question and subsequent answers that are posted there are relevant to OS X (Snow Leopard) and not to OS X Lion and OS X Mountain Lion. There were patches for Python and MySQL that shipped in OS X Lion and OS X Mountain Lion that impact the process of installing the Python-MySQLdb-connector smoothly on Mac OS X 10.7 (Lion) and Mac OS X 10.8 (Mountain Lion). This is is the only reason this question is being repeated. Please feel free to refer to the old question in case you are running an older version of OS X.

I am running OS X 10.8.2 (Mountain Lion) and have python 2.7.2 installed –

==> python 
Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

But when I run import MySQLdb on python, it fails with the following message –

==> python 
Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named MySQLdb

Any input would be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:53:06+00:00Added an answer on June 17, 2026 at 8:53 pm

    mysql-connector-python from offical mysql(Oracle) is a good choice for both python 2.x and 3.x.

    It’s a pure python library without mysql client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Python - It is possible to install another version of Python to
Possible Duplicate: Virtual machine with Mac OS X I was wondering if anyone has
Possible Duplicate: Cannot install R-forge package using install.packages Has anyone gotten the latest version
Possible Duplicate: Can I install python 3.x and 2.x on the same computer? I
Possible Duplicate: error: Unable to find vcvarsall.bat I'm trying to install MySql interface for
Possible Duplicate: MSI Install Fails because “Another version of this product is already installed”
Possible Duplicate: Can I install Python 2.7.1 64bit along side of an exsiting 32bit
Possible Duplicate: Make iPhone app paid version replace free version on install from app
Possible Duplicate: How do I remove packages installed with Python's easy_install? I am asking
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.