使用Eclipse PyDev使Cython在Windows 7中工作

时间:2014-02-19 13:11:03

标签: python eclipse pydev cython

我是一个尝试学习Cython的新手。我的操作系统是Windows 7,我使用Eclipse PyDev作为我的Python开发IDE。

我已尝试根据this指南安装和测试Cython:

enter image description here

以下是我的环境变量PATH的内容:

C:\texlive\2012\bin\win32;C:\Users\jjepoh\Jonne's_Programs\CodeBlocks\MinGW\bin;C:\Users\jjepoh\Jonne's_Programs\SSH client;C:\Users\jjepoh\Jonne's_Programs\Python\Scripts;

MinGW安装在Codeblocks:

enter image description here

我使用here中的Windows二进制文件安装了Cython 0.20.1:

enter image description here

我安装了Python 2.7.5:

enter image description here

在这里你可以看到在Python下安装的Cython:

enter image description here

我的hello.pyx, test_cython.pysetup.py根据指南:

enter image description here

似乎我可以编译c文件,但我认为我做错了。最终结果是:

enter image description here

你们有什么想法,我在这里错过了什么?为什么我无法导入hello.pyx模块?

感谢您的帮助。对于大量的图片感到抱歉,我认为尽可能多地提供详细信息会有所帮助。当问到=)

时,我会提供更多细节

1 个答案:

答案 0 :(得分:1)

我用用户提供的提示解决了问题@IanH =)

以下是解决方案的链接:

error: Unable to find vcvarsall.bat

Compiling with cython and mingw produces gcc: error: unrecognized command line option '-mno-cygwin'

在这里你可以看到结果=)

enter image description here