Menu

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 (https://www.microsoft.com/en-us/download/details.aspx?id=44266)

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

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

5. Type in “fib.bat”

6. Run the “testfib.py”

Go Back

Comment

Blog Search

Comments

There are currently no blog comments.