Hi, how do I install Numpy on Windows? I've tried the setup.py file, but get an error message: setup.py install gives: No module named msvccompiler in numpy.distutils; trying from distutils error: Unable to find vcvarsall.bat Yours, Per Tunedal
On Fri, 20 Mar 2015 09:45:41 +0100 Per Tunedal <per.tunedal@operamail.com> wrote:
Hi, how do I install Numpy on Windows? I've tried the setup.py file, but get an error message:
setup.py install
gives: No module named msvccompiler in numpy.distutils; trying from distutils error: Unable to find vcvarsall.bat
get the ms compiler from http://aka.ms/vcpython27 -- Jérôme Kieffer tel +33 476 882 445
On Mar 20, 2015 1:49 AM, "Jerome Kieffer" <Jerome.Kieffer@esrf.fr> wrote:
On Fri, 20 Mar 2015 09:45:41 +0100 Per Tunedal <per.tunedal@operamail.com> wrote:
Hi, how do I install Numpy on Windows? I've tried the setup.py file, but get an error message:
setup.py install
gives: No module named msvccompiler in numpy.distutils; trying from distutils error: Unable to find vcvarsall.bat
get the ms compiler from http://aka.ms/vcpython27
Or more generally, you need to install the same version of MSVC or the "platform SDK" that was used to compile your python interpreter; this varies between python interpreters. The above link is appropriate for python 2.7 (and maybe some nearby versions too, I forget), but won't help if you're using e.g. python 3.4. If you want maximum speed you'll also need to acquire an optimized blas library from somewhere, which can be tricky. You might prefer to just download Christoph Gohlke's wheels (which are linked against the proprietary MKL, in case you care), or to use a scientific python distribution like anaconda or pythonxy. -n
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, as you ask how to install Numpy and not how to compile it, I guess you are looking for a so called distribution. A distribution bundles pre-compiled packages of Numpy and others together for simple usage of Numpy. Otherwise you have to compile it yourself with various dependencies. That's easy to accomplish. Have a look at https://winpython.github.io/ https://code.google.com/p/pythonxy/ http://docs.continuum.io/anaconda/ regards, Sebastian On 03/20/2015 09:45 AM, Per Tunedal wrote:
Hi, how do I install Numpy on Windows? I've tried the setup.py file, but get an error message:
setup.py install
gives: No module named msvccompiler in numpy.distutils; trying from distutils error: Unable to find vcvarsall.bat
Yours, Per Tunedal _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
-- python programming - mail server - photo - video - https://sebix.at To verify my cryptographic signature or send me encrypted mails, get my key at https://sebix.at/DC9B463B.asc and on public keyservers. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQIcBAEBCAAGBQJVDDXtAAoJEBn0X+vcm0Y7WeIP/An4PfdtfAQBMKPuUmFoLsfO mskvmdciJl7K7rGucvd1jJWGuuaarILziYjCQk7ZeWd/uvC8c7iA4H6T2PgA0CuP tsWfRpNNy56C7I6lo0b4l3l4o4QM84H/S9qKL5Qsnygl9BeFQxyAKspgwxWUmKXk 6V5YqCkF/91Qbeb8MTO6Gc4a8cG+H7xo1OEuOBC1qummU/f4UoaIwk1WXX3AeYaO Jun3ZNv6yB0mk94iQzIiccQmWz3T9F+Z0TawXg5otLgsCqpNd0GEtLV/MWmBU5HN zgQ7Uhmz9bmypSEx1UPF1L8NHOVD0VdoUCFy4tzECi7RqcVxxTJ1dwqZOFFQaqAk F6m3K4HTfvfhSaSZR9pIgtP0sVyis44R1Vox24IDZH6LKCpt6GnWcCxbZfCUQW67 9OEs/YP3yeH1VRY70soGmkexFc7a7ssy6nyuAN1MXSX+uxJDsr674gklqV1i8Yxm Et8hLDG084Bh7aaq4Xppz3kXNOLDX3+RClXJjOR0qyxzNqSdJBzgABmY83GDV2DS e7iV0IJYIBzBpU9tok3KRsYky/cKMkagx75MQKgWLqsmfSD+gutmEscgIKIJXCMx rt1NN46OODR9KMjoK+9k80GILEbU9gwsw61jrj0KaH+032tZemeMgN8GlkpTiTbW eomkdUii20Cjp3x+Jdvh =JGhA -----END PGP SIGNATURE-----
Hi, thank you all! This turned out more complicated than I expected. I tried installing the indicated compiler VCForPython27.msi but that didn't change anything. On the other hand I don't want to install any special distribution of Python - I want to stick to the standard distribution to be sure my own code can run anywhere. I only need numpy to test the language guesser langid.py - as I need a guesser for sentences (a very small amount of text, making the language identification tricky). langid.py happens to be dependent on numpy. I will try some other language guesser instead. I might install Anaconda on a virtual machine to compare numpy with other solutions. Yours, Per Tunedal On Fri, Mar 20, 2015, at 15:59, Sebastian wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi,
as you ask how to install Numpy and not how to compile it, I guess you are looking for a so called distribution. A distribution bundles pre-compiled packages of Numpy and others together for simple usage of Numpy. Otherwise you have to compile it yourself with various dependencies. That's easy to accomplish. Have a look at
https://winpython.github.io/ https://code.google.com/p/pythonxy/ http://docs.continuum.io/anaconda/
regards, Sebastian
On 03/20/2015 09:45 AM, Per Tunedal wrote:
Hi, how do I install Numpy on Windows? I've tried the setup.py file, but get an error message:
setup.py install
gives: No module named msvccompiler in numpy.distutils; trying from distutils error: Unable to find vcvarsall.bat
Yours, Per Tunedal _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
-- python programming - mail server - photo - video - https://sebix.at To verify my cryptographic signature or send me encrypted mails, get my key at https://sebix.at/DC9B463B.asc and on public keyservers. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQIcBAEBCAAGBQJVDDXtAAoJEBn0X+vcm0Y7WeIP/An4PfdtfAQBMKPuUmFoLsfO mskvmdciJl7K7rGucvd1jJWGuuaarILziYjCQk7ZeWd/uvC8c7iA4H6T2PgA0CuP tsWfRpNNy56C7I6lo0b4l3l4o4QM84H/S9qKL5Qsnygl9BeFQxyAKspgwxWUmKXk 6V5YqCkF/91Qbeb8MTO6Gc4a8cG+H7xo1OEuOBC1qummU/f4UoaIwk1WXX3AeYaO Jun3ZNv6yB0mk94iQzIiccQmWz3T9F+Z0TawXg5otLgsCqpNd0GEtLV/MWmBU5HN zgQ7Uhmz9bmypSEx1UPF1L8NHOVD0VdoUCFy4tzECi7RqcVxxTJ1dwqZOFFQaqAk F6m3K4HTfvfhSaSZR9pIgtP0sVyis44R1Vox24IDZH6LKCpt6GnWcCxbZfCUQW67 9OEs/YP3yeH1VRY70soGmkexFc7a7ssy6nyuAN1MXSX+uxJDsr674gklqV1i8Yxm Et8hLDG084Bh7aaq4Xppz3kXNOLDX3+RClXJjOR0qyxzNqSdJBzgABmY83GDV2DS e7iV0IJYIBzBpU9tok3KRsYky/cKMkagx75MQKgWLqsmfSD+gutmEscgIKIJXCMx rt1NN46OODR9KMjoK+9k80GILEbU9gwsw61jrj0KaH+032tZemeMgN8GlkpTiTbW eomkdUii20Cjp3x+Jdvh =JGhA -----END PGP SIGNATURE-----
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (4)
-
Jerome Kieffer -
Nathaniel Smith -
Per Tunedal -
Sebastian