0
votes

I am trying to install Cython on a computer running Windows 7. I am using MinGW for my C-compiler. I've taken the following steps:

  1. Installed MinGW.

  2. Added C:\MinGW\bin to Path. Made sure Path included no empty spaces.

  3. Created the file distutils.cfg in the distutils directory. It reads:

    [build]
    compiler=mingw
    [build_ext]
    compiler=mingw
  4. I start the command prompt, got to the proper directory and type "python setup.py install". I get the following output:

    running install
    running build
    running build_py
    running build_ext
    building 'Cython.Plex.Scanners' extension
    error: Unable to find vcvarsall.bat

As far as I've understood, this is an error regarding setting MinGW as the C-compiler, but I've aldready included it into Path. What more can I do? Where do I go from here?

2

2 Answers

1
votes

Open CMD and type:

SET VS90COMNTOOLS=%VS100COMNTOOLS%

Change the numbers for the edition value of Visual Studio you are running :)

Possibly stolen from here: error: Unable to find vcvarsall.bat

EDIT:

you can download the necessary packages from here:

http://go.microsoft.com/?linkid=7729279

It also sets VS90COMMNTOOLS for you :)

0
votes

Why wont You use prebuilded packages from Here

?

I also tried compiling Cython and also failed. This way is far easier :)