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

## 软件包事实

- **软件包键:** brew:pybind11
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pybind11>
- **版本:** 3.0.4
- **来源摘要:** Seamless operability between C++11 and Python
- **主页:** <https://github.com/pybind/pybind11>
- **仓库:** <https://github.com/pybind/pybind11>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/pybind/pybind11/archive/refs/tags/v3.0.4.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 构建依赖

- cmake
- python@3.13
- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.0.4
- 本地数据: OK
- 上游仓库: https://github.com/pybind/pybind11
- 检测到的最新版本: v3.0.4 (当前)
- 信息: No package-manager update timestamp was available.

## 安全说明

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:** pybind11
- **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 - 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## 相关链接

- [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.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Build dependency declared by Homebrew.
- [python@3.13](https://pkg.so/zh-hans/brew/python-3-13/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [pytorch](https://pkg.so/zh-hans/brew/pytorch/) - Popular package that depends on this formula.
- [ocrmypdf](https://pkg.so/zh-hans/brew/ocrmypdf/) - Popular package that depends on this formula.
- [cffi](https://pkg.so/zh-hans/brew/cffi/) - Shares pkgdb curated category or tags: bindings, cli, developer-tools, language-bindings, python.
- [sip](https://pkg.so/zh-hans/brew/sip/) - Shares pkgdb curated category or tags: bindings, cli, developer-tools, language-bindings, python.
- [curlpp](https://pkg.so/zh-hans/brew/curlpp/) - Shares pkgdb curated category or tags: bindings, cli, cpp, developer-tools, library.
- [ada-url](https://pkg.so/zh-hans/brew/ada-url/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools, library.
- [cgal](https://pkg.so/zh-hans/brew/cgal/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools, library.
- [pyqt](https://pkg.so/zh-hans/brew/pyqt/) - Shares pkgdb curated category or tags: bindings, cli, developer-tools, python.
- [conan](https://pkg.so/zh-hans/brew/conan/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools, python.
- [pygments](https://pkg.so/zh-hans/brew/pygments/) - Shares pkgdb curated category or tags: cli, developer-tools, library, python.
- [libchardet](https://pkg.so/zh-hans/brew/libchardet/) - Local package facts share a topical domain. Shared terms: cli, config, cpp, developer, developer-tools.
- [cmake-language-server](https://pkg.so/zh-hans/brew/cmake-language-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, language, python.
- [darker](https://pkg.so/zh-hans/brew/darker/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, only, python.

## 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
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
