# 使用 Homebrew, apt, MacPorts, Nix, pacman 安装 jython

查看 jython 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:jython
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jython
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jython
```

  证据: MacPorts ports tree: lang/jython/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install jython
```

  证据: Debian stable package indexes: jython from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#jython
```

  证据: nixpkgs package indexes: pkgs/by-name/jy/jython/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S jython
```

  证据: Arch Linux sync databases: jython from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:jython
- **软件包管理器:** Homebrew
- **版本:** 2.7.4
- **来源摘要:** Python implementation written in Java (successor to JPython)
- **主页:** <https://www.jython.org/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jython (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.7.4
## 项目历史与用法

Jython is the long-running implementation of Python for the Java platform, descended from JPython and maintained as a Python runtime that can import and use Java classes while running on the JVM.

### 项目历史

JPython was created in late 1997 by Jim Hugunin at CNRI. Barry Warsaw took over as primary developer in February 1999, and the project moved to SourceForge in October 2000 under the Jython name.

The project became a durable bridge between the Python and Java ecosystems. Its 2.x line tracked Python 2 compatibility, while the official Jython site and repository describe ongoing Python 3 work as a separate development direction rather than a completed replacement.

### 采用历史

Jython found its niche wherever Python syntax was useful inside Java applications: embedding scripts in JVM software, calling Java libraries from Python code, and experimenting with dynamic language support on the Java platform.

The package has remained in Unix package managers because it is historically important, still useful for JVM/Python interoperability, and different enough from CPython to matter to users who specifically need Java integration.

### 使用方式

Users run the `jython` command as a Python interpreter on the JVM, often to script Java APIs or to embed Python-like extension points in Java software. Official documentation emphasizes Java package access, Java bytecode compilation, and integration with Java platform classes.

### 为什么软件包爱好者会关心

For package maintainers, Jython is a classic alternate-language-runtime package: it looks like Python at the command line but has JVM dependencies, Java compatibility concerns, and a release cadence separate from CPython.

It is also a reminder that language packages are not always mere compilers or interpreters; some are compatibility layers between two large ecosystems, which makes versioning and dependency policy especially visible.

### 时间线

- 1997: JPython was created by Jim Hugunin.
- 1999: Barry Warsaw became primary developer and released JPython 1.1.
- 2000: The project moved to SourceForge and was renamed Jython.
- 2020: Jython 2.7.2 was released with Java 8 builds and Java 11 testing.
- 2022: Jython 2.7.3 was released.
- 2024: Jython 2.7.4 was released.

### Related projects

- Jython is related to CPython as an alternate Python implementation, to the Java platform as its runtime target, and to other Python-on-managed-runtime projects that trade native C extension compatibility for host-platform integration.

### 来源

- <https://github.com/jython/jython>
- <https://www.jython.org/>
- <https://www.jython.org/jython-old-sites/license.html>
- <https://www.jython.org/news.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - jython - 2.7.3+repack1-1: normalized package name match | Debian stable package indexes: jython from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python seamlessly integrated with Java | http://www.jython.org
- Debian apt - jython-doc - 2.7.3+repack1-1: normalized package name match | Debian stable package indexes: jython-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Jython documentation including API docs | http://www.jython.org
- Nix - jython: normalized package name match | nixpkgs package indexes: pkgs/by-name/jy/jython/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - jython - 2.7.3+repack1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: jython from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python seamlessly integrated with Java | http://www.jython.org
- Ubuntu apt - jython-doc - 2.7.3+repack1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: jython-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Jython documentation including API docs | http://www.jython.org
- pacman - jython - 2.7.4-3: normalized package name match | Arch Linux sync databases: jython from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An implementation of the Python language written in Java | https://www.jython.org/
- MacPorts - jython: normalized package name match | MacPorts ports tree: lang/jython/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/jython.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jython.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
