I'd like to build a C++ extension for Python. I took a simple C file from a tutorial and wrote the setup.py file. But when I run the command:
python setup.py build_ext --inplace
I get the following error:
error: Unable to find vcvarsall.bat
This file is located in "c:\Program Files (x86)\Microsoft Visual Studio 12.0\vc\vcvarsall.bat" but even when I run it and set all environment variables, python.exe still tries to find it. I added this path to the PATH but it didn't solve the issue. I know this problem has been reported several times on Stack Overflow, but I haven't found any working solution.