I am trying to install jep system-wide from pip3 by the following command
sudo pip3 install jep
I get the following error:
Complete output from command python setup.py egg_info: Error: Please set the environment variable JAVA_HOME to a path containing the JDK.
python setup.py egg_info failed with error code 1 in /tmp/pip-install-t9lhbx74/jep/
I have already installed openjdk-14 using apt because jep supports Java => 1.3.
My bashrc has the following lines:
Then I tried to reconfigure java by using
sudo update-alternatives --config java There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-14-openjdk-amd64/bin/java. Nothing to configure.
I tried solution from follwoing questions but no luck:
Here are some helpful details if requried:
- Ubuntu 19.10
- Python3 = 3.8 default (3.7 also available being used application specific)
- pip3 = pip 19.3.1 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)
- Java = openjdk 14-ea 2020-03-17
OpenJDK Runtime Environment (build 14-ea+18-Ubuntu-1)
OpenJDK 64-Bit Server VM (build 14-ea+18-Ubuntu-1, mixed mode, sharing)