python 安装 jpype

来源:互联网 发布:大陆网络段子比台湾 编辑:程序博客网 时间:2024/05/16 23:44

1.在linux 上安装

下载包:https://pypi.python.org/pypi/JPype1

安装:python setup.py install

error:

  1. gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include/linux -Isrc/native/common/include -Isrc/native/python/include -I/usr/include/python2.4 -c src/native/common/jp_proxy.cpp -o build/temp.linux-x86_64-2.4/src/native/common/jp_proxy.o
  2. gcc: error trying to exec 'cc1plus': execvp: No such file or directory
  3. error: command 'gcc' failed with exit status 1

解决方法:

  1. yum install gcc-c++

原创粉丝点击