Cannot import MySQLdb on Windows with Anaconda Python Stack
Question: I recently installed mysql-python with these methods but no one worked;

  * conda install mysql-python
  * pip install mysql-python
  * easy_install mysql-python
  * I followed [this](http://stackoverflow.com/questions/26705890/cannot-import-mysqldb-python-windows-8-1)
  * I installed from [this link](http://www.lfd.uci.edu/~gohlke/pythonlibs/)

After all installation I am able to see the package in Anaconda\Lib\site-
packages and in ipython tab completation works for MySQLdb. However, if I try
to import it it raises;

    
    
    ImportError                               Traceback (most recent call last)
    <ipython-input-1-dd22983d5391> in <module>()
    ----> 1 import MySQLdb
    
    ImportError: No module named MySQLdb
    

Do you have any suggestion to make it work ?


Answer: Try looking if the MySQLdb package is in the search path:

    
    
    >>> import sys
    >>> s = sorted(sys.path)
    >>> for ss in s: print ss
    

The `Anaconda\Lib\site-packages` folder should appear in the list. If not, you
can:

  * add the path to the sys.path (just an .append(), as sys.path is a list) in your client program, 
  * or globally, modifying the PYTHONPATH environment variable.

