title: Python import MySQLdb error
body: <p>I'm having trouble importing MySQLdb to python.
  I'm using python 2.7 in Mavericks.</p>
  
  <p>I followed <a href="https://stackoverflow.com/questions/7949024/gcc-4-2-error-when-using-pip-in-virtualenv-on-osx-10-7">this helpful post</a> (and links therein) to install, and it all looked good up until the end. But I am getting the following error when I import the module in Python.</p>
  
  <pre><code>&gt;&gt;&gt; import MySQLdb
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/MySQLdb/__init__.py", line 19, in &lt;module&gt;
      import _mysql
  ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so, 2): no suitable image found.  Did find:
      /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so: mach-o, but wrong architecture
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>