title: Python Pip install Error: Unable to find vcvarsall.bat. Tried all solutions
body: <p>I tried to install Scrapy for Python 2.7.8 (anaconda 2.1.0) 32-bit using </p>
  
  <pre><code>pip install scrapy
  </code></pre>
  
  <p>And I got this error </p>
  
  <pre><code> error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
  </code></pre>
  
  <p>I have followed the solutions found in these stackover flow questions. Nothing worked. </p>
  
  <p><a href="https://stackoverflow.com/questions/26140192/microsoft-visual-c-compiler-for-python-2-7">Microsoft Visual C++ Compiler for Python 2.7</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6126737/cant-find-vcvarsall-bat-file">Can&#39;t find vcvarsall.bat file</a></p>
  
  <p><a href="https://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat">error: Unable to find vcvarsall.bat</a></p>
  
  <p><a href="https://stackoverflow.com/questions/24380442/getting-error-unable-to-find-vcvarsall-bat-when-running-pip-install-numpy-o">Getting &quot;error: Unable to find vcvarsall.bat&quot; when running &quot;pip install numpy&quot; on windows7 64bit</a></p>
  
  <p><a href="https://stackoverflow.com/questions/19830942/pip-install-gives-error-unable-to-find-vcvarsall-bat">pip install gives error: Unable to find vcvarsall.bat</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6551724/how-do-i-point-easy-install-to-vcvarsall-bat/8705722#8705722">How do I point easy_install to vcvarsall.bat?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/24783176/pip-install-mysql-python-returns-unable-to-find-vcvarsall-bat">pip install MySQL-python returns unable to find vcvarsall.bat</a></p>
  
  <p>This is the error, and a few lines above and below it:</p>
  
  <pre><code>copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt
  -&gt; build\lib.win32-3.4\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  
  running build_ext
  
  building 'lxml.etree' extension
  
  C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution opt
  ion: 'bugtrack_url'
  
    warnings.warn(msg)
  
  error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
  
  
  ----------------------------------------
  Command "C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:
  \\Users\\San\\AppData\\Local\\Temp\\pip-build-wp6ei6r9\\lxml\\setup.py';exec(com
  pile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __f
  ile__, 'exec'))" install --record C:\Users\San\AppData\Local\Temp\pip-kfkzr_67-r
  ecord\install-record.txt --single-version-externally-managed --compile" failed w
  ith error code 1 in C:\Users\San\AppData\Local\Temp\pip-build-wp6ei6r9\lxml
  </code></pre>
  
  <hr>
  
  <p>I have both Microsoft Visual Studio 12.0, and Microsoft visual C++ compiler package for Python 2.7, both of which have the vcvarsall.bat file. </p>
  
  <hr>
  
  <p>I have a system variable that is called 'VS120COMNTOOLS' and is its path is set to </p>
  
  <pre><code>C:\Program Files\Microsoft Visual Studio 12.0\Common7\Tools\
  </code></pre>
  
  <hr>
  
  <p>I also added both paths to my environment variables. I've also tried just adding one, and then the other. My Path looks like this</p>
  
  <pre><code>C:\Program Files\Java\jdk1.7.0_25\bin;\Python27;\Python2\python.exe;C:\Python27\Scripts\;C:\Users\San\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\;C:\Program Files\Microsoft Visual Studio 12.0\VC\;
  </code></pre>
  
  <hr>
  
  <p>I also updated by my setup tools (I think to version 8), which should autodetect Microsoft Visual C++ Compiler for Python 2.7. However, I'm still getting the same error. </p>
  
  <hr>
  
  <p>I have also tried using </p>
  
  <pre><code>easy_install scrapy
  </code></pre>
  
  <p>And I get this error</p>
  
  <pre><code>error: Setup script exited with error: Microsoft Visual C++ 10.0 is required (Un
  </code></pre>
  
  <p>able to find vcvarsall.bat).</p>
  
  <hr>
  
  <p>I also have the following in my registry</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\9.0\Setup\VC\ProductDir
  HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\12.0\Setup\VC\ProductDir
  </code></pre>