Data Science Dev

Design, develop, deploy

Cython Example

This is a simple Cython example I made from another website's tutorial.  I remember when I was trying to extend Python functionality with C.  It wasn't too bad, but Cython makes it a lot easier.  Here are the files for the example.

1. Install Cython: “pip install cython” from windows command line.

2. Download and install Visual C++ Compiler for Python 2.7 (

3. Open the “Visual C++ 2008 64-bit Cross Tools Command Prompt”

4. Go to the directory where “fib.pyx” and “” exist.

5. Type in “fib.bat”

6. Run the “”

Go Back


Blog Search


There are currently no blog comments.