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 msvc9compiler.py
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 : https://www.python.org/downloads/release/python-350a1/ 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
SET VS130COMNTOOLS=%VS10COMNTOOLS%
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 3.5.1.2 64bit.
See also: vcvarsall.bat needed for python to compile missing from visual studio 2015 ( v 14)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With