# 使用 Homebrew, apt, dnf, pacman 安装 bpython

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

## 安装

```sh
sudo av install brew:bpython
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bpython
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install bpython
```

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

- dnf (92%):

```sh
sudo dnf install python3-bpython
```

  证据: Fedora Rawhide package metadata: python3-bpython from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S bpython
```

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

## 软件包事实

- **软件包键:** brew:bpython
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bpython>
- **版本:** 0.26
- **来源摘要:** Fancy interface to the Python interpreter
- **主页:** <https://bpython-interpreter.org>
- **仓库:** <https://github.com/bpython/bpython>
- **上游文档:** <https://docs.bpython-interpreter.org/en/latest>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/44/29/cd80e9108a6fc6a925ffb915f8f69198a2bb2388e39167a41d743ac2a8f4/bpython-0.26.tar.gz>
- **最后更新:** 2026-05-20T10:57:00Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- bpdb (cli)
- bpython (cli)
- bpython-urwid (cli)
- bpdb (别名)
- bpython (别名)
- bpython-urwid (别名)

## 依赖

- certifi
- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.26
- 管理器更新时间: 2026-05-20
- 本地数据: OK
- 上游仓库: https://bpython-interpreter.org
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

bpython is a long-running enhanced interface to the Python interactive interpreter. Its official site emphasizes inline syntax highlighting, readline-like autocomplete, rewind, and pastebin support, positioning it as a friendlier REPL rather than a replacement Python runtime.

### 项目历史

The GitHub repository describes bpython as a fancy curses interface to the Python interactive interpreter, and the official website lists Linux, BSD, macOS, and partial Windows support. The tag history reaches back to a 0.9.4 release commit in July 2009, while the modern GitHub repository metadata dates the current repository object to 2014.

Over time, bpython tracked Python language releases and terminal UI dependencies. The official changelog records releases focused on Python 3.10, 3.11, 3.13, and 3.14 support, as well as curtsies dependency changes, theme configuration fixes, and declarative build configuration.

### 采用历史

bpython became a staple optional Python REPL in package managers because it adds interactive niceties without asking users to abandon standard Python semantics. The input package facts list Homebrew, Debian, Fedora, Arch, and Ubuntu packaging.

Its adoption overlaps with IPython, ptpython, and standard `python` REPL workflows. bpython's niche is lightweight terminal interaction: autocomplete and display improvements with less notebook or shell-framework machinery.

### 使用方式

Users run `bpython` for an enhanced interactive Python session, `bpython-urwid` for the urwid frontend, or `bpdb` for debugger-related use. Configuration lives under `$XDG_CONFIG_HOME/bpython/config`, and the docs describe editing that config from inside bpython with F3.

The documented feature set focuses on day-to-day interactive work: syntax highlighting, suggestions as you type, rewinding recent input and reevaluating, pastebin submission, themes, and editor integration.

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

bpython matters because REPL ergonomics are a quiet but important layer of language tooling. It is small enough to package like a CLI utility, but visible enough that Python users often discover it while comparing interpreter frontends.

For package history, bpython is also a durable example of a non-core developer tool following Python's release cadence. Each new Python version creates compatibility work, so the package's changelog doubles as a record of ecosystem maintenance.

### 时间线

- 2009: 0.9.4 release tag commit appears in the official GitHub repository history.
- 2014: Current GitHub repository object was created.
- 2021: Changelog records Python 3.10 support work in the 0.22 era.
- 2024: Changelog records Python 3.13 support in 0.25.
- 2025: 0.26 release tag appears with Python 3.14 support.

### Related projects

- Related Python REPLs include the standard CPython interactive interpreter, IPython, ptpython, and other terminal shells that improve completion, display, and editing.
- The bpython docs and executables also connect it to terminal UI libraries such as curses, urwid, and curtsies.

### 来源

- <https://bpython-interpreter.org>
- <https://docs.bpython-interpreter.org/en/latest>
- <https://docs.bpython-interpreter.org/en/latest/changelog.html>
- <https://docs.bpython-interpreter.org/en/latest/configuration.html>
- <https://github.com/bpython/bpython>
- source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/bpython/config, ~/.config/bpython/config
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bpython
- **Version Scheme:** 0
- **Revision:** 6
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - bpython - 0.25-2: normalized package name match | Debian stable package indexes: bpython from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fancy interface to the Python 3 interpreter | https://bpython-interpreter.org/
- Ubuntu apt - bpython - 0.24-1: normalized package name match | Ubuntu 24.04 LTS package indexes: bpython from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fancy interface to the Python 3 interpreter | https://bpython-interpreter.org/
- dnf - python3-bpython - 0.26-4.fc45: normalized package name match | Fedora Rawhide package metadata: python3-bpython from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Fancy curses interface to the Python 3 interactive interpreter | http://www.bpython-interpreter.org/
- dnf - python3-bpython-urwid - 0.26-4.fc45: normalized package name match | Fedora Rawhide package metadata: python3-bpython-urwid from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Urwid interface to the Python 3 interactive interpreter | http://www.bpython-interpreter.org/
- pacman - bpython - 0.26-2: normalized package name match | Arch Linux sync databases: bpython from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fancy ncurses interface to the Python interpreter | https://bpython-interpreter.org/


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [ptpython](https://www.automicvault.com/zh-hans/pkg/brew/ptpython/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, python, repl.
- [ipython](https://www.automicvault.com/zh-hans/pkg/brew/ipython/) - Shares av.db curated category or tags: cli, developer-tools, python, repl.
- [mypy](https://www.automicvault.com/zh-hans/pkg/brew/mypy/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, python.
- [abi3audit](https://www.automicvault.com/zh-hans/pkg/brew/abi3audit/) - Shares av.db curated category or tags: cli, developer-tools, python.
- [auditwheel](https://www.automicvault.com/zh-hans/pkg/brew/auditwheel/) - Shares av.db curated category or tags: cli, developer-tools, python.
- [austin](https://www.automicvault.com/zh-hans/pkg/brew/austin/) - Shares av.db curated category or tags: cli, developer-tools, python.
- [autopep8](https://www.automicvault.com/zh-hans/pkg/brew/autopep8/) - Shares av.db curated category or tags: cli, developer-tools, python.
- [basedpyright](https://www.automicvault.com/zh-hans/pkg/brew/basedpyright/) - Shares av.db curated category or tags: cli, developer-tools, python.
- [grokmirror](https://www.automicvault.com/zh-hans/pkg/brew/grokmirror/) - Both packages touch the same language runtime or ecosystem. Shared terms: certifi, cli, developer, developer-tool, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/bpython.yml](https://github.com/automic-vault/db/blob/main/combined/bpython.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
