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