# 使用 Homebrew, apt, dnf 安装 pytest

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

## 安装

```sh
sudo av install brew:pytest
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pytest
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install python-pytest-doc
```

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

- dnf (92%):

```sh
sudo dnf install python3-pytest
```

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

## 软件包事实

- **软件包键:** brew:pytest
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pytest>
- **版本:** 9.1.1
- **来源摘要:** Simple powerful testing with Python
- **主页:** <https://docs.pytest.org/en/latest/>
- **上游文档:** <https://docs.pytest.org/en/latest/>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz>
- **最后更新:** 2026-06-20T12:34:40Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- py.test (cli)
- pytest (cli)
- py.test (别名)
- pytest (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 9.1.1
- 管理器更新时间: 2026-06-20
- 本地数据: OK
- 上游仓库: https://docs.pytest.org/en/latest/
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

narrow executable package without higher-risk signals.

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


## 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: pytest.toml, .pytest.toml, pytest.ini, .pytest.ini, pyproject.toml, tox.ini, setup.cfg
## 源数据库详情

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

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

- Debian apt - python-pytest-doc - 8.3.5-2: normalized package name match | Debian stable package indexes: python-pytest-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple, powerful testing in Python - Documentation | https://pytest.org/
- Debian apt - python3-pytest - 8.3.5-2: normalized package name match | Debian stable package indexes: python3-pytest from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple, powerful testing in Python3 | https://pytest.org/
- Ubuntu apt - python-pytest-doc - 7.4.4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python-pytest-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple, powerful testing in Python - Documentation | https://pytest.org/
- Ubuntu apt - python3-pytest - 7.4.4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-pytest from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple, powerful testing in Python3 | https://pytest.org/
- dnf - python3-pytest - 9.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: python3-pytest from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Simple powerful testing with Python | https://pytest.org


## 相关链接

- [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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [tox](https://pkg.so/zh-hans/brew/tox/) - Shares pkgdb curated category or tags: cli, developer-tools, python, testing.
- [phpunit](https://pkg.so/zh-hans/brew/phpunit/) - Shares pkgdb curated category or tags: cli, developer-tools, testing, unit-testing.
- [locust](https://pkg.so/zh-hans/brew/locust/) - Shares pkgdb curated category or tags: cli, developer-tools, python, testing.
- [cargo-nextest](https://pkg.so/zh-hans/brew/cargo-nextest/) - Shares pkgdb curated category or tags: cli, developer-tools, test-runner, testing.
- [lit](https://pkg.so/zh-hans/brew/lit/) - Shares pkgdb curated category or tags: cli, developer-tools, test-runner, testing.
- [robot-framework](https://pkg.so/zh-hans/brew/robot-framework/) - Shares pkgdb curated category or tags: cli, developer-tools, python, testing.
- [moto](https://pkg.so/zh-hans/brew/moto/) - Shares pkgdb curated category or tags: cli, developer-tools, python, testing.
- [nox](https://pkg.so/zh-hans/brew/nox/) - Shares pkgdb curated category or tags: cli, developer-tools, python, testing.
- [cxxtest](https://pkg.so/zh-hans/brew/cxxtest/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, python, python-3-14.
- [roundup](https://pkg.so/zh-hans/brew/roundup/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, runner, test.

## Combined YAML source

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


## 来源

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