Cython problem in Windows XP: "error: could not find vcvarsall.bat"

Cython version 0.13, Python 3.1 I tried all the "solutions" in the Cython FAQ, but to no avail. My version is Visual Studio 7.1, and its directory does not contain vcvarsall.bat. Does this problem have a solution?

+4
source share
1 answer

SO search, and you will find enough discussion of this.

[Edit: based on the comment below]

When you run setup.py install on windows, distutils looks for vcvarsall.bat to run.

About vcvarsall.bat

VCVarsall.bat is a Visual Studio command line tool in Visual Studio. It allows you to set various parameters for the integrated development environment (IDE), as well as create, debug and deploy projects from the command line.

What to do if it does not find this file

Solution 1: File Hunt

  • distutils has a hard path to vcvarsall.bat.
  • find the file starting with vc * .bat or vc * .cmd. A file that installs the command line environment for the MS compiler toolchain. The location is not compatible with different versions of the visual studio installation. If you are using the 32 bit version, you should find vcvars32.bat.
  • drop it in the distutils directory that it expects.
+2
source

All Articles