title: ImportError: No module named MySQLdb Python2.7
body: <p>I can't install anything to fix it. I tried out the following commands. </p>
  
  <pre><code>pip install MySQL-python when I run this please see the screen shot in error
  </code></pre>
  
  <blockquote>
    <p>pip install mysqlclient brew install mysql brew install
    libmysqlclient-dev</p>
  </blockquote>
  
  <pre><code>more pictures [![enter image description here][1]][1][![enter image description here][1]][1]
  
  
  
    PASML-1717136:server $ Python2.7 main.py
      Traceback (most recent call last):
        File "main.py", line 68, in &lt;module&gt;
          HANDLER = get_handlers()
        File "main.py", line 59, in get_handlers
          adapter = MysqlAdapter(CONFIG.DB_CONN)
        File "/Users/mnaeem668/Projects/Automation_KPI/server/../server/adapters/mysql_adapter.py", line 24, in __init__
          self._connect()
        File "/Users/mnaeem668/Projects/Automation_KPI/server/../server/adapters/mysql_adapter.py", line 33, in _connect
          self.engine = create_engine(conn_str)
        File "/Library/Python/2.7/site-packages/sqlalchemy/engine/__init__.py", line 479, in create_engine
          return strategy.create(*args, **kwargs)
        File "/Library/Python/2.7/site-packages/sqlalchemy/engine/strategies.py", line 87, in create
          dbapi = dialect_cls.dbapi(**dbapi_args)
        File "/Library/Python/2.7/site-packages/sqlalchemy/dialects/mysql/mysqldb.py", line 118, in dbapi
          return __import__("MySQLdb")
      ImportError: No module named MySQLdb
      Exception AttributeError: "'NoneType' object has no attribute 'close'" in &lt;bound method MysqlAdapter.__del__ of &lt;server.adapters.mysql_adapter.MysqlAdapter object at 0x11240cb50&gt;&gt; ignored
  </code></pre>
  
  <p><strong>Update: install python-MySQLdb</strong></p>
  
  <pre><code>ERROR: Could not find a version that satisfies the requirement python-MySQLdb (from versions: none)
  ERROR: No matching distribution found for python-MySQLdb
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/C1mUh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C1mUh.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/WqgDp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WqgDp.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/3TJjd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3TJjd.png" alt="enter image description here"></a></p>