user2536262
user2536262

Reputation: 279

Problems with installing Cython on a computer running Windows 7

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?

Upvotes: 0

Views: 1295

Answers (2)

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 :)

Upvotes: 1

Kowalski Paweł
Kowalski Paweł

Reputation: 626

Why wont You use prebuilded packages from Here

?

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

Upvotes: 0

Related Questions