# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:pytest
- **软件包管理器:** Homebrew
- **版本:** 9.1.1
- **来源摘要:** Simple powerful testing with Python
- **主页:** <https://docs.pytest.org/en/latest/>
- **最后更新:** 2026-06-20T12:34:40Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 9.1.1

## 安全说明

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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Simple powerful testing with Python | https://pytest.org


## 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
- curated configuration and credential file locations
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
