title: How to access MySQL Python Connector with Python 2.7.8 and Sublime Text 3 on OS X 10.9
body: <p>I'm trying to set up MySQL to work with python 2.7.8 and Sublime Text 3 on OS X 10.9, so I installed the MySQL python connector. Whenever I try to run "import mysql.connector", I get back "ImportError: No module named connector". </p>
  
  <p><strong>How should this be configured so that I can use the connector to access MySQL?</strong> </p>
  
  <p>Details:</p>
  
  <p>-Sublime is installed under Applications</p>
  
  <p>-Sublime Text 3 uses python 3 as the default, so I had to set up a python 2.7 build system. Here is my code for this system: </p>
  
  <pre><code>  "cmd": ["/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/bin/python2.7", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python2"
  </code></pre>
  
  <p>-Python is installed at </p>
  
  <pre><code> /usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/bin/python2.7
  </code></pre>
  
  <p>-MySQL executable is installed at </p>
  
  <pre><code>/usr/local/mysql-5.6.19-osx10.7-x86_64/bin
  </code></pre>
  
  <p>-The connector has a symlink at </p>
  
  <pre><code>/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mysql/connector
  </code></pre>
  
  <p>and is installed fully at </p>
  
  <pre><code>/usr/local/lib/python2.7/site-packages/mysql/connector
  </code></pre>
  
  <p>Additionally, I added the following to .bash_profile to get the necessary directories added to the path. </p>
  
  <pre><code>PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
  export PATH
  
  # trying to get mysql access
  PATH = "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages:${PATH}"
  export PATH
  </code></pre>
  
  <p>I'm sure I'm missing something simple, but this is my first time setting this much up, and I've spent way too many hours googling and trying to find out what I'm doing wrong. Anyone have an idea what I need to change to access the connector module? Thanks in advance.</p>