question

Dave Angel davea at davea.name
Thu Oct 24 09:36:32 EDT 2013


On 23/10/2013 16:24, Cesar Campana wrote:

> Hi!
>
> Im installing the python library for the version 2.7 but Im getting the
> error unable to find vcvarsall.bat
>
> I was looking on line but it says is related to Visual Studio...?
>
> Can you guys please help me to fix this...
>

The other responses were right-on.  But just in case you don't know some
of the background, let me try to fill it in.

Python itself, much of the standard library, and many of the third-party
extension libraries are written in C, completely or partly.

If you get source code for any such code, you're expected to compile it,
and on Windows, that usually means with Microsoft's C compiler,
usually found within Visual Studio.  There are free versions (usually
with the name "express" as part of their description) on Microsoft's
site.

vcvars.bat is the first step towards finding a particular version of
the compiler.

Now, if you don't have the right versionof that compiler (or any
version), you will probably be more comfortable using a precompiled
binary version of the package.  You still have to match the version
against whatever CPython you're using, 32 or 64 bit, 2.7 or 3.3, or
whatever.

Depending on just what you were trying to install, you could look for
such a binary package on python.org, on Stackoverflow, or on 
http://www.lfd.uci.edu/~gohlke/pythonlibs/


-- 
DaveA





More information about the Python-list mailing list