# 安装 pypy

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

## 安装

```sh
sudo av install brew:pypy
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pypy
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pypy
```

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

### Linux

- apk (92%):

```sh
sudo apk add pypy
```

  证据: Alpine Linux edge package indexes: pypy from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install pypy
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#pypy
```

  证据: nixpkgs package indexes: pypy from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S pypy
```

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

## 软件包事实

- **软件包键:** brew:pypy
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pypy>
- **版本:** 7.3.22
- **来源摘要:** Highly performant implementation of Python 2 in Python
- **主页:** <https://pypy.org/>
- **上游文档:** <https://pypy.org/>
- **许可证:** MIT
- **源码归档:** <https://downloads.python.org/pypy/pypy2.7-v7.3.22-src.tar.bz2>
- **更新:** 2026-04-28T17:28:50Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- pypy (cli)
- pypy (别名)

## 依赖

- gdbm
- openssl@3
- sqlite
- tcl-tk@8

## 构建依赖

- pkgconf

## macOS 提供的库

- bzip2
- expat
- libffi
- ncurses
- unzip

## 安装行为

- post-install 钩子: 已定义
- Caveats: A "distutils.cfg" has been written to: $HOMEBREW_CELLAR/pypy/7.3.22/libexec/lib-python/2.7/distutils specifying the install-scripts folder as: $HOMEBREW_PREFIX/share/pypy If you install Python packages via "pypy setup.py install", easy_install_pypy, or pip_pypy, any provided scripts will go into the install-scripts folder above, so you may want to add it to your PATH *after* $HOMEBREW_PREFIX/bin so you don't overwrite tools from CPython. Setuptools and pip have been installed, so you can use easy_install_pypy and pip_pypy. To update setuptools and pip between pypy releases, run: pip_pypy install --upgrade pip setuptools See: https://docs.brew.sh/Homebrew-and-Python
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 7.3.22
- 管理器更新时间: 2026-04-28
- 本地数据: ok
- 上游仓库: https://pypy.org/
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** green / low
- narrow executable package without higher-risk signals

## 相关链接

- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [sqlite](https://www.automicvault.com/pkg/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [gdbm](https://www.automicvault.com/pkg/brew/gdbm/) - Runtime dependency declared by Homebrew.
- [tcl-tk@8](https://www.automicvault.com/pkg/brew/tcl-tk-8/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [pypy3.10](https://www.automicvault.com/pkg/brew/pypy3-10/) - Package name indicates the same formula family.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
