Yot*_*tam 1 python installation jpype
好吧,我按照这里的说明操作,但运行setup.py时出现编译错误
src/native/common/jp_voidtype.cpp: In member function ‘virtual void JPVoidType::setArrayValues(jarray, HostRef*)’:
src/native/common/jp_voidtype.cpp:105:2: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from src/native/python/jpype_python.cpp:18:0:
src/native/python/include/jpype_python.h:24:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
所以你可以看到我得到很多不赞成的警告(我没有发布),就像前两行一样,但是有一个严重的错误 - 缺少的Python.h文件 - 导致安装失败.
我该如何修复它?我应该把这个文件放在哪里?
注意:我的JAVA_HOME设置正确 /usr/lib/jvm/java-7-oracle/
| 归档时间: |
|
| 查看次数: |
3137 次 |
| 最近记录: |