title: Troubles installing mysqlclient with pip3
body: <p>I'm trying to set up a python 3.6 environment with Django. The installation instructions say I should install mysqlclient to be able to connect to mySQL. I get this:</p>
  
  <pre><code>dennis@django:~$ sudo -H pip3 install mysqlclient
  Collecting mysqlclient
    Using cached mysqlclient-1.3.10.tar.gz
      Complete output from command python setup.py egg_info:
      /bin/sh: 1: mysql_config: not found
      Traceback (most recent call last):
        File "&lt;string&gt;", line 1, in &lt;module&gt;
        File "/tmp/pip-build-4jiw3hvk/mysqlclient/setup.py", line 17, in &lt;module&gt;
          metadata, options = get_config()
        File "/tmp/pip-build-4jiw3hvk/mysqlclient/setup_posix.py", line 44, in get_config
          libs = mysql_config("libs_r")
        File "/tmp/pip-build-4jiw3hvk/mysqlclient/setup_posix.py", line 26, in mysql_config
          raise EnvironmentError("%s not found" % (mysql_config.path,))
      OSError: mysql_config not found
  
      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4jiw3hvk/mysqlclient/
  You are using pip version 8.1.1, however version 9.0.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  </code></pre>
  
  <p>mySQL is properly installed. What should be in the mysql_config file?
  When I try to upgrade pip3 I get this:</p>
  
  <pre><code>dennis@django:~$ sudo -H pip3 install --upgrade pip3
  Collecting pip3
    Could not find a version that satisfies the requirement pip3 (from versions: )
  No matching distribution found for pip3
  You are using pip version 8.1.1, however version 9.0.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  </code></pre>
  
  <p>After installing mysqlclient with pip3, I noticed that the module was installed in the python3.5 directory instead of in the python3.6 directory so when I tried to import the MySQLdb module running python3.6, it was not found</p>
  
  <pre><code>dennis@django:~/python_db$ python
  Python 3.6.0+ (default, Feb  4 2017, 11:11:46) 
  [GCC 5.4.1 20161202] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import MySQLdb
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'MySQLdb'
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
      from apport.fileutils import likely_packaged, get_recent_crashes
    File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in &lt;module&gt;
      from apport.report import Report
    File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt;
      import apport.fileutils
    File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt;
      from apport.packaging_impl import impl as packaging
    File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in &lt;module&gt;
      import apt
    File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in &lt;module&gt;
      import apt_pkg
  ModuleNotFoundError: No module named 'apt_pkg'
  
  Original exception was:
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'MySQLdb'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>I then reran using python 3.5 and it was found. How do I install modules using pip3 into the 3.6 directory?</p>