Help installing MySQLdb for Python under Mac OS X?

Try macports: $ port search python | grep mysql py-mysql @1.2.2 (python, devel, databases) Python interface to mysql py25-mysql @1.2.2 (python, devel, databases) Python interface to mysql py26-mysql @1.2.3 (python, devel, databases) py27-mysql @1.2.2 (python, devel, databases) Python interface to mysql.

Thanks! I don't know 100% what I just did, though :D If I run "import MySQLdb" from the Python CLI it doesn't find it. How can I check it is properly installed?

– ign May 15 at 23:40 That command doesn't install it. Sudo port install py-mysql (or whichever one you want) will, though. And port list | grep py-mysql will show if it's installed.

– Matthew Ratzloff May 15 at 23:50 Yeah, I got it now, I'm installing and see how it goes. Thanks. – ign May 15 at 23:54 It seemd to be properly installed, thanks.

I can't run mysql though... – ign May 150 at 2:27.

If you don't want to deal with the bullshit of a package manager on your mac, I've detailed my experience in this installation guide: alexandersimoes.com/journal/2011/03/04/i....

Thanks, simoes, I'll definitely keep this on my bookmarks. – ign Jun 20 at 18:52 This was very very helpful. Thank you.

– Lostsoul Jul 22 at 6:24.

My answer here worked for me for both a 32-bit and a 64-bit Mac Snow Leopard install (on two different machines): Installing MySQLdb for Django on Mac OS X 10.6 Snow Leopard with MAMP Short version: user$ sudo su root# ARCHFLAGS="-arch $(uname -m)" pip install mysql-python.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions