0

我正在尝试使用 ssh 将 javabridge 安装到我的出租服务器。Python、jdk (app-engine-java)、numpy、pandas、python-weka-wrapper 已安装,但 Pip install javabridge 给了我错误。

我尝试设置路径,但安装仍然出错。

点安装javabridge

弃用:Python 2.7 将于 2020 年 1 月 1 日到期。请升级您的 Python,因为 Python 2.7 在该日期之后将不再维护。> pip 的未来版本将不再支持 Python 2.7。使用缓存的https://files.pythonhosted.org/packages/a6/a0/c59bccabed99b1d4ac68166c59c679b375bfca75b78688b52c541b711578/javabridge-1.0.18.tar.gz收集 javabridge

ERROR: Complete output from command python setup.py egg_info:
     ERROR: Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "/tmp/pip-install-RqqZMr/javabridge/setup.py", line 402, in 
<module>
   ext_modules=ext_modules(),

当我输入 which java

 ~/.linuxbrew/bin/java

.bash_profile

  $HOME/.pyenv/bin:$PATH
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$HOME/.pyenv/bin:$PATH

EXPORT eval "$(pyenv init -)"

export PYTHON_PATH="$PATH:/home/cantik/.linuxbrew/lib/python2.7"
export JAVA_PATH="/home/cantik/.linuxbrew/bin/java"
echo ${JAVA_HOME}

export HOMEBREW_TEMP=~/tmp PATH=~/.linuxbrew/bin:$PATH

export LDFLAGS="-L/home/cantik/.linuxbrew/opt/isl@0.18/lib"
export CPPFLAGS="-I/home/cantik/.linuxbrew/opt/isl@0.18/include"
~

谢谢

4

0 回答 0