在Mac中安装jpype, 默认使用python setup install不成功,有几个步骤:
1. 安装XCode
2. 安装XCode命令行工具,使系统能找到clang
3. 更改setup.py使系统能够找到header文件,
参考一下链接:
http://stackoverflow.com/questions/8525193/how-to-install-jpype-on-os-x-lion-to-use-with-neo4j
def setupInclusion(self)
self.includeDirs = [
self.javaHome+"/include",
self.javaHome+"/include/"+self.jdkInclude,
"src/native/common/include",
"src/native/python/include", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers"
]
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers"
本文详细介绍如何在Mac上成功安装JPype。首先需要安装XCode及其命令行工具以确保系统能识别clang。其次,要修改setup.py文件,以便系统能找到必要的header文件。文中提供了具体的配置示例。
1008

被折叠的 条评论
为什么被折叠?



