I am trying to install numpy in python 3.5 under windows 10 with visual studio 2015 ultimate installed.
Short version: file vcvarsall.bat
is missing fro
Make sure C++ Common Tools are installed in Visual Studio.
Programs and Features -> VS 2015 -> Change
I downloaded the Microsoft Visual C++ build Tools Link Here and everything worked great.
I met this problem when I was trying to build ujson package with python 2.7 (compiled with VS 2015).
There is this line:
majorVersion = int(s[:-2]) - 6
it sets majorVersion to 13, but the correct version for VS 2015 is 14. So you need add two line, for example:
if majorVersion == 13:
majorVersion = 14
I just had the same problem (Windows 7, Python 3.4, pip 7.1)
pip install mysqlclient
(...)
error: Unable to find vcvarsall.bat
I followed these instructions: https://www.linkedin.com/pulse/resolving-python-error-unable-find-vcvarsallbat-bhanu-pratap-singh/
Then upgraded pip to 9.0.1 with
python -m pip install --upgrade pip
tried again:
pip install mysqlclient
and voilà:
Successfully installed mysqlclient-1.3.12
I've come across this problem before when trying to install numpy. Although I was unable to fix the 'vcvarsall.bat' problem, I found that i could download pre compiled libraries from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ Download the libraries you want, navigate to wherever the downloaded .whl files are and open a command prompt window. run 'pip install [whl file name]' This will install the library for you with no compile issue.
While installing any Python 2.7 module if you are facing the error:
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)
The easiest solution would be to:
http://aka.ms/vcpython27
Details:
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
This message appears because the Python package being installed contains the source code for a native extension module (.pyd), but does not have a pre-built copy of the module. The Python packages highlighted at pythonwheels.com have already been updated by their developers to include pre-built binaries, but many are still only available as source code.
This compiler package is entirely unsupported and represents a snapshot of the last version that is fully compatible with Python 2.7. For the latest security and bug fixes, please use the latest version of Microsoft Visual Studio for any development work that does not directly interface with Python 2.7.