Error installing MySQL-python: Unable to find vcvarsall.bat
<p>I was trying to install <code>mysql-python</code> using <strong>pip</strong><br>
I'm getting the following error:  </p>

<pre><code>error: Unable to find vcvarsall.bat

 ----------------------------------------
 Failed building wheel for mysql-python

 ...
 ...

   running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat

----------------------------------------


Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\hp\\appdata\\local\\temp\\pip-build-
jy5yhb\\mysql-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record 
c:\users\hp\appdata\local\temp\pip-jditig-record\install-record.txt --single-   
version-externally-managed --compile" failed with error code 1 in 
c:\users\hp\appdata\local\temp\pip-build-jy5yhb\mysql-python\
</code></pre>

<p>Background works did:  </p>

<ul>
<li>Installed MySQL from official website(<a href="https://www.mysql.com/why-mysql/windows/" rel="nofollow">link</a>)</li>
<li>Installed SQLite3</li>
<li>Installed Visual C++ Redistributable 2008, 2010, 2013, 2015</li>
<li>Installed C++ Compiler for python (latest)</li>
</ul>

<p>I have tried all the answers that already exist in Stack Overflow and other Websites, nothing helped.</p>

<p>Context:  </p>

<p>I'm trying to run a <em>Django</em> server in my laptop, for which I need mysql-python.<br>
(OS: Windows 10)</p>

<p>First check your Python installation &amp; Windows 10 Installation [i.e. Is it 32Bit or 64Bit].</p>

<h1>Visual C++ Redistributable comes with x86 as well x64 make sure you have installed compatible package.</h1>

python mysql windows