MySQL and Python on OSX

June 25, 2013

Because I rarely use MySQL nowadays and because how often do you set up a new machine, this is a reminder to myself on how to get mysql-python installed in a virtualenv

  1. Add /usr/local/mysql/bin to your path (permanently in your .profile)
  2. If "pip install mysql-python" fails, try this version: 'sudo ARCHFLAGS="-arch $(uname -m)" pip install mysql-python'
  3. Realize none of that made much of a difference and then blindly copy & paste from here
  4. Discover that's still not quite everything and make this symbolic link (unless the paths change between now and when you find this)
Previously: Top Tips for Patients | After this: Norm | All Posts
Tagged: mysql python osx