windows7 64bit python pip install error: Unable to find vcvarsall.bat

I tried all the methods that I can find online and I even dove into the python code it didn't help.

I am using windows 7 64 bit version. I have installed Microsoft VS 2008 and 2012 both. The Python I installed is 3.5

When I run pip install numpy, I am getting error:

Unable to find vcvarsall.bat

The version return by the code in shows my VS version is 14.0 and I dive into all kinds of windows registry to add a couple of entries(VC and ProdctDir to point to the VS 2008 VC folder). It didn't help. I can run vcvarsall.bat from the command line and it runs fine with following result. Setting environment for using Microsoft Visual Studio 2008 x86 tools.

I though it works fine.

Is there anything else I can try? I have spent two days on this.


according to this : python 3.5 is compiled with vs2015.

if you done want to install vs2015 you can set the enviroment variable VS__COMNTOOLS where __ is the version number of visual studio. for example in python 2.7 i had to do this in cmd before using pip

SET VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\

im not sure but i think the version number of vs2015 is 13 so do

SET VS130COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\ 

or you can do


Bonson, Frank, etc.

Re-install or upgrade Visual Studio 2015 Community and make sure you select Visual C++ then proceed. It worked for me on Windows 7 64bit with Python 3.5.1 which I installed as part of WinPython 64bit.

See also: vcvarsall.bat needed for python to compile missing from visual studio 2015 ( v 14)

Need Your Help

How to provide spacing between android Radio Buttons of Vertical orientation

android android-layout android-radiobutton

I got a scenario where I need to provide spacing between Radio buttons arranged vertically.

Linux/ File in linux and F_TLOCK issue

c linux file-io fork

I read a book about files in Linux, and it gives the next example: