Skip to content Skip to sidebar Skip to footer

Building Minimal Cython File With Python 3.3 (anaconda) Under Windows 7

When I try to build a minimal Cython file test.pyx with Python 3.3 (Anaconda 3) under windows 7, I obtain a strange error: C:\Users\myname\Test_cython>python setup.py build runn

Solution 1:

The line 404 of the file cygwinccompiler.py of the package disutils

out_string = check_output(['gcc', '-dumpmachine'])

has to be changed as

out_string = check_output(['gcc', '-dumpmachine'], shell=True)

Then, it compiles normally.

Post a Comment for "Building Minimal Cython File With Python 3.3 (anaconda) Under Windows 7"