DistutilsPlatformError: Microsoft Visual C++ 10.0 is required

21 views
Skip to first unread message

ga...@fidalgo.net

unread,
Oct 2, 2015, 8:47:20 AM10/2/15
to distutils-sig
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 do I fix this?
 
I'm using Python 3.4.3, obtained from Anaconda, on Win XP
 
Thanks in advance
Gary Richardson
 
---------------------------------
# setup.py
from setuptools import setup, Extension
 
setup(name="example",
        version = "1.0",
        ext_modules = [ Extension("_example", ["pyexample.c", "example.c"])
            ]
        )
Reply all
Reply to author
Forward
0 new messages