Getting "error: Unable to find vcvarsall.bat" when running "pip install numpy" on windows7 64bit Getting "error: Unable to find vcvarsall.bat" when running "pip install numpy" on windows7 64bit numpy numpy

Getting "error: Unable to find vcvarsall.bat" when running "pip install numpy" on windows7 64bit


Maybe you want to use the prebuilt binaries here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy? Using pip likely wont yield any good results. The reason is that numpy doesn't compile with Visual Studio at all and needs to be built with gcc.

If you still really want to compile numpy, you need to setup a Linux machine with Vagrant and follow the official build instructions here: https://github.com/juliantaylor/numpy-vendor


Had the same problem on my 64-Bit Windows. The issue was resolved by installing the Microsoft Visual C++ Compiler for Python 2.7, which is described by Microsoft as:

This package contains the compiler and set of system headers necessary for producing binary wheels for Python packages. A binary wheel of a Python package can then be installed on any Windows system without requiring access to a C compiler.

The typical error message you will receive if you need this compiler package is Unable to find vcvarsall.bat

...

Works like a charm.


You need to download and install vcsetup.exe(Visual C++ 2008 express edition) file

And then add newly created vcvarsall.bat file path to "PATH" environment variable.

Make sure there are no special symbols in your PATH environment variable after adding