DistutilsPlatformError

garyr garyr at fidalgo.net
Fri Oct 2 15:35:10 EDT 2015


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"])
            ]
        )





More information about the Python-list mailing list