O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

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 JPype

Jython is the default interoperability solution for Python and Java. However, Jython runs on the Java virtual machine (JVM). Therefore, it cannot access NumPy modules, which are mostly written in C. JPype is an open source project that tries to solve this problem. The interfacing occurs on the native level between Python and JVM. Let's install JPype.

How to do it...

  1. Download JPype from http://sourceforge.net/projects/jpype/files/.
  2. Unpack it and run the following command:
    $ python setup.py install
    

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