How to install JPype on OS X Lion to use with Neo4j?

后端 未结 10 1536
梦谈多话
梦谈多话 2020-12-06 12:51

I am trying to use Neo4j for a project, and want to interface with it through Python since I\'m a newbie to programming and don\'t know any Java. I\'m following the installa

10条回答
  •  被撕碎了的回忆
    2020-12-06 13:29

    I'm not a Python guy, but tried installing JPype on my machine:

    % uname -a
    Darwin fatty-i7.local.tld 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
    % java -version
    java version "1.6.0_29"
    Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
    Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
    

    On OSX Lion, the latest JDK appears to be located here:

    /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/JavaVM.framework/
    

    A little googling turned up this post: http://blog.y3xz.com/post/5037243230/installing-jpype-on-mac-os-x

    I followed those instructions to modify setup.py, then ran sudo python setup.py install with no problems.

    Does that help?

提交回复
热议问题