2

I'm brushing up on my Python and have recently installed ver. 2.7.9 on my Win7 64-bit PC. I tried installing a couple of packages (numpy 1.9.1 and scipy 0.15.1) but I get errors through the process. I ran:

> python setup.py install

from the folder of each package and although the setup script ran, neither of the packages got installed. I got the following errors:

numpy: Unable to find vsvarsall.bat
scipy: No module named numpy.distutils.core (???)

Note that I haven't tampered with the packages files at all, which I extracted from the .tar files available in the Python Package Index database. I'd appreciate any help on this matter.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
Zack
  • 181
  • 1
  • 11

1 Answers1

2

The go-to repository for Windows modules is Christoph Gohlke's Python Extension Packages for Windows site. He has both numpy and scipy available. To install, download the appropriate .whl file, then run

pip install name_of_file.whl

to install the module. pip should have been installed automatically when you installed 2.7.9, if the command is not found, make sure you add C:\Python27\Scripts to your PATH and restart the command prompt.

MattDMo
  • 100,794
  • 21
  • 241
  • 231