I'm trying to install Numpy and other packages into a virtualenv.
When I try to install it, I get an error, "cannot find vcvarsall.bat". On my main (system wide) Python, I solved this by installing the Microsoft Visual Studio download, but that does not work inside a virtualenv - the Windows installer wants to install it against my default Python, not the one in the virtual environment.
So how do I get around this error? It's not just for Numpy, but lots of packages want this. Things that don't work:
- Installing the exe file from here using setuptools.
- Running the install from a cmd window inside the virtualenv.
- Installing from inside PyCharm (same error, it seems to be just calling pip).
How do I install into a virtualenv on Windows? [Win 7, Python 2.7.3]