title: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module with MySQL installed
body: <h2>Hardware configuration</h2>
  <p>I'm configuring my new MacBook Air with Apple silicon M1 chip and obviously mac os 11 Big Sur.</p>
  <h2>Environment</h2>
  <p>I have installed</p>
  <p>With Homebrew:</p>
  <ul>
  <li><code>mysql@5.7</code></li>
  </ul>
  <p>With <code>pyenv@1.2.21</code>:</p>
  <ul>
  <li><code>python@3.6.5</code></li>
  </ul>
  <p>With <code>pip@20.3.3</code>:</p>
  <ul>
  <li><code>mysqlclient==1.4.2.post1</code></li>
  </ul>
  <h2>The issue</h2>
  <p>I work with Django framework and the last step for me is to configure the MySQL database on localhost.
  MySQL server is running and I can use it from the shell and access it by SequelPro.
  When I run <code>python manage.py migrate</code> I have this problem :</p>
  <pre><code>django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
  Did you install mysqlclient?
  </code></pre>
  <p>The database configuration is:
  <a href="https://i.stack.imgur.com/7lqgx.png" rel="nofollow noreferrer">DATABASE environment</a></p>
  <p>Does someone have the same problem?</p>