How to install jython 2.7?
Solution 1
To install Jython 2.7:
Download it from their official website
Double click the
jython_installer-2.7.0.jar
or runjava -jar jython_installer-2.7.0.jar
. For headless mode add--console
.
The installer will then walk through a similar set of steps in graphical or console mode: showing the license, selecting an install directory and JVM and actually copying Jython to the filesystem. After this completes, Jython is installed in the directory you selected. Executing a script in the install directory, jython on Unix-like systems, will start up the Jython console, which can be used to dynamically explore Jython and the Java runtime, or to run Jython scripts.
Source: http://www.jython.org/ and https://wiki.python.org/jython/InstallationInstructions
Solution 2
Ubuntu Artful (17.10) has jython version 2.7.1.
So just upgrade to that.
Related videos on Youtube
Alexey Ce
Updated on September 18, 2022Comments
-
Alexey Ce almost 2 years
How do I install
Jython 2.7
?thufir@doge:~$ jython --version "my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15. Jython 2.5.3 thufir@doge:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.10 DISTRIB_CODENAME=yakkety DISTRIB_DESCRIPTION="Ubuntu 16.10"
Is there perhaps a particular package which will install 2.7, or another repo?
-
mike rodent over 6 yearsThe Jython devs are geniuses but they don't keep things up-to-date: github.com/jythontools/jython (--> "releases") is the best place to go for the latest version, at time of writing 2.7.2a (which you wouldn't know from the official website)