Building minimal cython file with python 3.3 (Anaconda) under windows 7

前端 未结 1 828
春和景丽
春和景丽 2021-01-02 15:22

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>         


        
相关标签:
1条回答
  • 2021-01-02 16:20

    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.

    0 讨论(0)
提交回复
热议问题