Question

I'm a newbie trying to learn Cython. My operating system is Windows 7 and I'm using Eclipse PyDev as my IDE for Python development.

I have tried to install and test Cython according to this guide:

enter image description here

Here is the content of my environment variable 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 is installed under Codeblocks:

enter image description here

I have installed Cython 0.20.1 using the Windows binaries from here:

enter image description here

I have Python 2.7.5 installed:

enter image description here

Here you can see Cython installed under Python:

enter image description here

My hello.pyx, test_cython.py and setup.py according to the guide:

enter image description here

It seems I can compile the c-file, but I am doing something wrong I think..here is the end result:

enter image description here

Do you guys have any idea, what am I missing here? Why can't I import the hello.pyx module?

Thank you for any assistance. Sorry for the large amount of pictures, I thought it would help to give as much details as possible. I will give more details when asked =)

Was it helpful?

Solution

I got it solved with the hints provided by user @IanH =)

Here are the links to the solution:

error: Unable to find vcvarsall.bat

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

Here you can see the result =)

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top