Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97349 > unrolled thread

DistutilsPlatformError

Started by"garyr" <garyr@fidalgo.net>
First post2015-10-02 12:35 -0700
Last post2015-10-02 22:25 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  DistutilsPlatformError "garyr" <garyr@fidalgo.net> - 2015-10-02 12:35 -0700
    Re: DistutilsPlatformError Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-10-02 22:25 +0100

#97349 — DistutilsPlatformError

From"garyr" <garyr@fidalgo.net>
Date2015-10-02 12:35 -0700
SubjectDistutilsPlatformError
Message-ID<mumm9s$v6m$1@speranza.aioe.org>
I'm trying to build an extension for Python 3. I'm using the example code in 
the
book "Python Essential Reference", 4ed. I have it working for Python 2. But 
when
I try to build it for Python 3 I get the following error:

distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 10.0 is 
required (
Unable to find vcvarsall.bat).

How can this be fixed?

I'm using Python 3.4.3, obtained from Anaconda, on Win XP

Thanks in advance
garyr

---------------------------------
# setup.py
from setuptools import setup, Extension

setup(name="example",
        version = "1.0",
        ext_modules = [ Extension("_example", ["pyexample.c", "example.c"])
            ]
        )

[toc] | [next] | [standalone]


#97355

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-10-02 22:25 +0100
Message-ID<mailman.349.1443821162.28679.python-list@python.org>
In reply to#97349
On 02/10/2015 20:35, garyr wrote:
> I'm trying to build an extension for Python 3. I'm using the example code in
> the
> book "Python Essential Reference", 4ed. I have it working for Python 2. But
> when
> I try to build it for Python 3 I get the following error:
>
> distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 10.0 is
> required (
> Unable to find vcvarsall.bat).
>
> How can this be fixed?
>
> I'm using Python 3.4.3, obtained from Anaconda, on Win XP
>
> Thanks in advance
> garyr
>

https://docs.python.org/devguide/setup.html#windows

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web