Can't Pip Install Javabridge
Ubuntu 18.04, python 2.7 I try sudo pip install javabridge I get Complete output from command python setup.py egg_info: Traceback (most recent call last): File '
Solution 1:
It looks like you're running into this issue. javabridge
package is not updated to changes in Java 9/10/11 regarding the restructuring of the JRE target dir (an intermediate dir named after the target arch removed), so you can only use the Java 8 at the moment. This is how I could install javabridge
successfully in an ubuntu:latest
docker container:
$ apt update$ apt install software-properties-common$ add-apt-repository ppa:webupd8team/java$ apt install openjdk-8-jdk$ update-alternatives --config java
This should give you the path to OpenJDK 8 similar to /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
, remove the jre/bin/java
suffix to get the JDK root.
Now install javabridge
:
$ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 pip install javabridge --user
Installing collected packages: javabridge
Running setup.py install for javabridge ... done
Successfully installed javabridge-1.0.17
Solution 2:
https://pythonhosted.org/javabridge/installation.html#dependencies:
The Javabridge requires Python 2.6 or above, NumPy, the Java Development Kit (JDK), and a C compiler.
sudo apt install python2.7 python-numpy openjdk-8-jdk gcc
Post a Comment for "Can't Pip Install Javabridge"