Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97349
| From | "garyr" <garyr@fidalgo.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | DistutilsPlatformError |
| Date | 2015-10-02 12:35 -0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mumm9s$v6m$1@speranza.aioe.org> (permalink) |
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"])
]
)
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
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
csiph-web