Dorky
Dorky

Reputation: 121

Python Installing Cython & Numba but no vcvarsall.bat despite Visual C++ 2010

I use Python 3.4

I try to install Cython and Numba but keep getting "Unable to find vcvarsall.bat".

I googled for the solution and found that I need Microsoft Visual C++ 2010 installed (for Python 3.4).

So I installed it.

And tried installing Cython and Numba ---> fail.

And then they say I must type "SET VS90COMNTOOLS=%VS100COMNTOOLS%" in the command prompt, which I did, like C:\Users\Dorky>set vs90comntools=%vs100comntools%.

And tried installing Cython and Numba again ---> fail.

Not enough with that, I also went to the environment variables to set this VS90 to VS100 thing manually.

And tried installing Cython and Numba again ---> fail.

So how exactly can I solve this special "Unable to find vcvarsall.bat" problem?

What the heck is so special with this vcvarsall.bat that the user must install Microsoft's programs in order to use it?

Why not just extract out this vcvarsall.bat file as an independent file and then just copy&paste it to any file or directory that needs and not bother with the rest of the software package?

Why not the Python team just extract out this vcvarsall.bat and incorporate it into its Python packages so whenever a user installs Python, he/she will also install vcvarsall.bat along the way and then Python would also know where to look for this file in case needing to install Cython or Numba or any other?

Upvotes: 1

Views: 453

Answers (1)

MattDMo
MattDMo

Reputation: 102852

If you're using the python.org version of Python, there's a much easier way to go about things - grab the packages you're interested in from Christoph Gohlke's Python Extension Packages for Windows repository. He has a very large selection of mainly scientific computing-based Python modules, including Cython and numba (you'll need numpy - compiled with Intel's MKL - and llvmlite - which requires this - as well). Everything is precompiled into .whl packages that can be installed with an up-to-date version of pip. Most modules are kept updated with the latest versions on PyPI or other repositories.

This is definitely my go-to site for installing packages on Windows, and if what I'm looking for isn't there, then I'll install via pip or the package source.

Upvotes: 1

Related Questions