# 使用 Homebrew, MacPorts, pacman, apt, dnf 安装 pybind11

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

## 安装

```sh
sudo av install brew:pybind11
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pybind11
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pybind11
```

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

### Linux

- pacman (92%):

```sh
sudo pacman -S pybind11
```

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

- Debian apt (92%):

```sh
sudo apt install pybind11-dev
```

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

- dnf (92%):

```sh
sudo dnf install pybind11-devel
```

  证据: Fedora Rawhide package metadata: pybind11-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:pybind11
- **软件包管理器:** Homebrew
- **版本:** 3.0.4
- **来源摘要:** Seamless operability between C++11 and Python
- **主页:** <https://github.com/pybind/pybind11>
- **仓库:** <https://github.com/pybind/pybind11>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- pybind11-config (别名)
- pybind11-config-3.13 (别名)
- pybind11-config-3.14 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - pybind11-dev - 2.13.6-2: normalized package name match | Debian stable package indexes: pybind11-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | seamless operability between C++11 and Python | https://github.com/pybind/pybind11
- Debian apt - pybind11-doc - 2.13.6-2: normalized package name match | Debian stable package indexes: pybind11-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation for pybind11 | https://github.com/pybind/pybind11
- Debian apt - python3-pybind11 - 2.13.6-2: normalized package name match | Debian stable package indexes: python3-pybind11 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | pybind11 helper module for Python 3 | https://github.com/pybind/pybind11
- Ubuntu apt - pybind11-dev - 2.11.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: pybind11-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | seamless operability between C++11 and Python | https://github.com/pybind/pybind11
- Ubuntu apt - pybind11-doc - 2.11.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: pybind11-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | documentation for pybind11 | https://github.com/pybind/pybind11
- Ubuntu apt - python3-pybind11 - 2.11.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-pybind11 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | pybind11 helper module for Python 3 | https://github.com/pybind/pybind11
- dnf - pybind11-devel - 3.0.4-7.fc45: normalized package name match | Fedora Rawhide package metadata: pybind11-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development headers for pybind11 | https://github.com/pybind/pybind11
- dnf - python3-pybind11 - 3.0.4-7.fc45: normalized package name match | Fedora Rawhide package metadata: python3-pybind11 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development headers for pybind11 | https://github.com/pybind/pybind11
- pacman - pybind11 - 3.0.4-1: normalized package name match | Arch Linux sync databases: pybind11 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A lightweight header-only library that exposes C++ types in Python and vice versa | https://pybind11.readthedocs.org/
- MacPorts - pybind11: normalized package name match | MacPorts ports tree: devel/pybind11/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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