0

I have installed Python 3.4.1 on Windows 8 x64. I'm trying to use pip, which is bundled with Python 3.4, to install numpy.

pip install numpy

When doing so I'm getting the following error message:

error: Unable to find vcvarsall.bat

I have also tried to use an installer, but the only numpy Windows installer for Python 3.4 I have found was a win32 installer which fails saying Python is not found in registry, probably because I have an x64 Python.

How do I install numpy for Python 3.4? (preferably using pip)

snakile
  • 52,936
  • 62
  • 169
  • 241
  • Dunno about the problem you're getting, but there are 64-bit Windows installers available: http://www.lfd.uci.edu/~gohlke/pythonlibs/ – user2357112 Jul 26 '14 at 11:10
  • @user2357112: Thanks, I have tried the right installer, it looked as if numpy has been successfully installed, but still when trying to `import numpy`, I get an import error. – snakile Jul 26 '14 at 11:14

2 Answers2

0

Assuming we had the same error, the full error is (by using easy_install):

error: Setup script exited with error: Microsoft Visual C++ 10.0 is required < Unable to find vcvarsall.bat>.

Therefore on Windows you need to have Microsoft Visual C++ 2010 (for python >=3.3). Note that the latest version (Visual Studios 2013) won't work. You can download the Express version for free here: Visual Studio Express

For additional information check:

However

You may encounter the error:

ValueError: ['path']

See value error trying to install numpy on windows 8.

Therefore the easiest way

  1. Download numpy-version.whl from uci.edu
  2. pip install numpy-version.whl (in terminal)
Community
  • 1
  • 1
NumesSanguis
  • 5,832
  • 6
  • 41
  • 76
0

The easiest way is to just run the numpy module's .exe file available at http://sourceforge.net/projects/numpy/files/NumPy/

gvlasov
  • 18,638
  • 21
  • 74
  • 110
lightyagami1
  • 105
  • 3
  • 7