# 使用 Homebrew, apk, Nix 安装 py-spy

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

## 安装

```sh
sudo av install brew:py-spy
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install py-spy
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add py-spy
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#py-spy
```

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

## 软件包事实

- **软件包键:** brew:py-spy
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/py-spy>
- **版本:** 0.4.2
- **来源摘要:** Sampling profiler for Python programs
- **主页:** <https://github.com/benfred/py-spy>
- **仓库:** <https://github.com/benfred/py-spy>
- **许可证:** MIT
- **源码归档:** <https://github.com/benfred/py-spy/archive/refs/tags/v0.4.2.tar.gz>
- **最后更新:** 2026-05-24T12:58:58+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- py-spy (cli)
- py-spy (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.4.2
- 管理器更新时间: 2026-05-24
- 本地数据: OK
- 上游仓库: https://github.com/benfred/py-spy
- 检测到的最新版本: v0.4.2 (当前)

## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - py-spy: normalized package name match | nixpkgs package indexes: pkgs/by-name/py/py-spy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - py-spy - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Sampling profiler for Python programs | https://github.com/benfred/py-spy
- apk - py-spy-bash-completion - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for py-spy | https://github.com/benfred/py-spy
- apk - py-spy-doc - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Sampling profiler for Python programs (documentation) | https://github.com/benfred/py-spy
- apk - py-spy-fish-completion - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for py-spy | https://github.com/benfred/py-spy
- apk - py-spy-zsh-completion - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for py-spy | https://github.com/benfred/py-spy


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [memray](https://pkg.so/zh-hans/brew/memray/) - Shares pkgdb curated category or tags: cli, developer-tools, performance, profiling, python.
- [snakeviz](https://pkg.so/zh-hans/brew/snakeviz/) - Shares pkgdb curated category or tags: cli, developer-tools, profiling, python.
- [samply](https://pkg.so/zh-hans/brew/samply/) - Shares pkgdb curated category or tags: cli, developer-tools, performance, profiler, profiling.
- [async-profiler](https://pkg.so/zh-hans/brew/async-profiler/) - Shares pkgdb curated category or tags: cli, developer-tools, performance, profiler, profiling.
- [austin](https://pkg.so/zh-hans/brew/austin/) - Shares pkgdb curated category or tags: cli, developer-tools, profiler, profiling, python.
- [counts](https://pkg.so/zh-hans/brew/counts/) - Shares pkgdb curated category or tags: cli, developer-tools, performance, profiling.
- [qcachegrind](https://pkg.so/zh-hans/brew/qcachegrind/) - Shares pkgdb curated category or tags: cli, developer-tools, profiling.
- [bloaty](https://pkg.so/zh-hans/brew/bloaty/) - Shares pkgdb curated category or tags: cli, developer-tools, profiler, profiling.
- [py-spy](https://pkg.so/zh-hans/cargo/py-spy/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
