title: Python pip install mysqlclient
body: <p>So I downloaded Python 32 bits 1st, then I did
  <code>python -m pip install mysqlclient</code>.</p>
  
  <p>I needed Visual C++ 2015, but I had them cuz my text editors is VSCode.
  I uninstalled VSCode, installed Visual Studio Build Tools, and I am getting this errors whenever I do <code>python -m pip install mysqlclient</code>.One, cl.exe wasnt added to my path, so I did, but it still says </p>
  
  <pre><code> error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2
  </code></pre>
  
  <p>so I downloaded the wheel package for windows, as some other stackoverflow answer said. Whenever I run it, I get</p>
  
  <p>I tried downloading Python 64 bits downloading the wheels, adding <code>cl.exe</code> to path.</p>
  
  <pre><code>Collecting mysqlclient
    Using cached https://files.pythonhosted.org/packages/4d/38/c5f8bac9c50f3042c8f05615f84206f77f03db79781db841898fde1bb284/mysqlclient-1.4.4.tar.gz
  Building wheels for collected packages: mysqlclient
    Building wheel for mysqlclient (setup.py) ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Program Files (x86)\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Patrik\\AppData\\Local\\Temp\\pip-install-0vmm7fdx\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\Patrik\\AppData\\Local\\Temp\\pip-install-0vmm7fdx\\mysqlclient\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Patrik\AppData\Local\Temp\pip-wheel-o3ba369p' --python-tag cp37
         cwd: C:\Users\Patrik\AppData\Local\Temp\pip-install-0vmm7fdx\mysqlclient\
    Complete output (30 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\MySQLdb
    copying MySQLdb\__init__.py -&gt; build\lib.win-amd64-3.7\MySQLdb
    copying MySQLdb\_exceptions.py -&gt; build\lib.win-amd64-3.7\MySQLdb
    copying MySQLdb\compat.py -&gt; build\lib.win-amd64-3.7\MySQLdb
    copying MySQLdb\connections.py -&gt; build\lib.win-amd64-3.7\MySQLdb
    copying MySQLdb\converters.py -&gt; build\lib.win-amd64-3.7\MySQLdb
    copying MySQLdb\cursors.py -&gt; build\lib.win-amd64-3.7\MySQLdb
    copying MySQLdb\release.py -&gt; build\lib.win-amd64-3.7\MySQLdb
    copying MySQLdb\times.py -&gt; build\lib.win-amd64-3.7\MySQLdb
    creating build\lib.win-amd64-3.7\MySQLdb\constants
    copying MySQLdb\constants\__init__.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
    copying MySQLdb\constants\CLIENT.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
    copying MySQLdb\constants\CR.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
    copying MySQLdb\constants\ER.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
    copying MySQLdb\constants\FIELD_TYPE.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
    copying MySQLdb\constants\FLAG.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
    running build_ext
    building 'MySQLdb._mysql' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\MySQLdb
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,4,4,'final',0) -D__version__=1.4.4 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include\mariadb" "-IC:\Program Files (x86)\Python\include" "-IC:\Program Files (x86)\Python\include" /TcMySQLdb/_mysql.c /Fobuild\temp.win-amd64-3.7\Release\MySQLdb/_mysql.obj /Zl /D_CRT_SECURE_NO_WARNINGS
    _mysql.c
    MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2
    ----------------------------------------
    ERROR: Failed building wheel for mysqlclient
    Running setup.py clean for mysqlclient
  Failed to build mysqlclient
  Installing collected packages: mysqlclient
    Running setup.py install for mysqlclient ... error
      ERROR: Command errored out with exit status 1:
       command: 'C:\Program Files (x86)\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Patrik\\AppData\\Local\\Temp\\pip-install-0vmm7fdx\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\Patrik\\AppData\\Local\\Temp\\pip-install-0vmm7fdx\\mysqlclient\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Patrik\AppData\Local\Temp\pip-record-nk0ejlkz\install-record.txt' --single-version-externally-managed --compile
           cwd: C:\Users\Patrik\AppData\Local\Temp\pip-install-0vmm7fdx\mysqlclient\
      Complete output (30 lines):
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.7
      creating build\lib.win-amd64-3.7\MySQLdb
      copying MySQLdb\__init__.py -&gt; build\lib.win-amd64-3.7\MySQLdb
      copying MySQLdb\_exceptions.py -&gt; build\lib.win-amd64-3.7\MySQLdb
      copying MySQLdb\compat.py -&gt; build\lib.win-amd64-3.7\MySQLdb
      copying MySQLdb\connections.py -&gt; build\lib.win-amd64-3.7\MySQLdb
      copying MySQLdb\converters.py -&gt; build\lib.win-amd64-3.7\MySQLdb
      copying MySQLdb\cursors.py -&gt; build\lib.win-amd64-3.7\MySQLdb
      copying MySQLdb\release.py -&gt; build\lib.win-amd64-3.7\MySQLdb
      copying MySQLdb\times.py -&gt; build\lib.win-amd64-3.7\MySQLdb
      creating build\lib.win-amd64-3.7\MySQLdb\constants
      copying MySQLdb\constants\__init__.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
      copying MySQLdb\constants\CLIENT.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
      copying MySQLdb\constants\CR.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
      copying MySQLdb\constants\ER.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
      copying MySQLdb\constants\FIELD_TYPE.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
      copying MySQLdb\constants\FLAG.py -&gt; build\lib.win-amd64-3.7\MySQLdb\constants
      running build_ext
      building 'MySQLdb._mysql' extension
      creating build\temp.win-amd64-3.7
      creating build\temp.win-amd64-3.7\Release
      creating build\temp.win-amd64-3.7\Release\MySQLdb
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,4,4,'final',0) -D__version__=1.4.4 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include\mariadb" "-IC:\Program Files (x86)\Python\include" "-IC:\Program Files (x86)\Python\include" /TcMySQLdb/_mysql.c /Fobuild\temp.win-amd64-3.7\Release\MySQLdb/_mysql.obj /Zl /D_CRT_SECURE_NO_WARNINGS
      _mysql.c
      MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Patrik\\AppData\\Local\\Temp\\pip-install-0vmm7fdx\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\Patrik\\AppData\\Local\\Temp\\pip-install-0vmm7fdx\\mysqlclient\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Patrik\AppData\Local\Temp\pip-record-nk0ejlkz\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
  </code></pre>
  
  <p>It should just work and the package <code>mysqlclient</code> just be installed using pip so I can use it with django.</p>