Mysqldb Module Download For Mac

  1. Download Mysqldb For Python
  2. Mysql Module Download For Mac Os X 10.6.8

MySQLdb don’t yet have support for python 3, it supports only python 2.4 – 2.7. As a result you need to use python 2 for this tutorial. We will be using python 2.7.9, which you can download from here. MySQLdb, Python, MySQL and OS X: A match made in Satan’s bum. 21 Sunday Feb 2010. You if you’re having trouble getting MySQL-python installed or don’t know what to do when you get the message “No module named MySQLdb”. There seems to be a million and one articles out there about setting this combo up most of them seem.

Active2 years, 10 months ago

I am current using Mac OS X 10.12.I am trying to install MySQLdb but kept getting these error.

When I running sudo pip install MySQLdb,the error message is:

Mysql module download for mac os x 10.11.6

and then I try to download MySQL-python-1.2.4b4, and use that to directly running setup.py.Then I got this error:

Download Mysqldb For Python

Tried lots of solutions out there.Still got lots of errors.Plz help here.

PhiliplPhilipl

1 Answer

The problem is the MySQL-python package does not currently support Python 3.

You could use another mysql package like mysqlclient which is a fork of MySQL-python, supports Python 3 and has worked well for me:

Or if you still need to use MySQL-python you could try installing it in Python 2.7 and use that for development:

Hope this helps.

damoresdamores
1,5432 gold badges9 silver badges21 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged mysqldjangomacospython-2.7 or ask your own question.

Active3 years, 11 months ago

I have trouble installing bitarray (vers 0.8.0) on my Mac OSX 10.7.4. Thanks!

gcc does not seem to be the problem:

bertieb
5,95611 gold badges29 silver badges44 bronze badges
Gabriele PompaGabriele Pompa

1 Answer

The setup is trying to run the command gcc-4.2, which doesn't seem to exist on your system. Verify by running which gcc-4.2 or locate gcc-4.2 (you may need to run /usr/libexec/locate.updatedb before you can use the latter command). In case it doesn't exist, simply create a symlink in the same directory in which the gcc binary resides:

Ansgar WiechersAnsgar Wiechers
4,8002 gold badges14 silver badges21 bronze badges

Mysql Module Download For Mac Os X 10.6.8

Not the answer you're looking for? Browse other questions tagged pythongcc or ask your own question.