O'Reilly logo

Learning Cython Programming by Philip Herron

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Cython

Now let's get Cython installed. Think of Cython as a tool like Bison, flex, or GCC; it takes an input source and generates another that you compile and link:

  • Fedora – Fedora comes with the yum package manager. So, you can simply run yum install Cython.
  • Ubuntu/Debian – As with Fedora, Ubuntu has a package available via aptitude: apt-get install Cython.
  • Mac – Install Xcode and the command-line tools. Then, run the following:
      $ curl -O http://www.cython.org/release/Cython-0.18.tar.gz
    
      $ tar zxvf Cython-0.18.tar.gz
    
      $ cd Cython-0.18
      $ sudo python setup.py install
    
  • Windows – Although there are a plethora of options available, following this wiki is the safest option to stay up to date: http://wiki.cython.org/InstallingOnWindows.

The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required