# 使用 Homebrew, winget, chocolatey, MacPorts, zypper, dnf, scoop, pacman, apk, apt, Nix 安装 python@3.11

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

## 安装

```sh
sudo av install brew:python@3.11
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install python@3.11
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install python311
```

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

### Linux

- zypper (92%):

```sh
sudo zypper install python311
```

  证据: openSUSE Tumbleweed package metadata: python311 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- dnf (92%):

```sh
sudo dnf install python3.11
```

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

- pacman (92%):

```sh
sudo pacman -S python
```

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

- apk (92%):

```sh
sudo apk add python3
```

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

- Debian apt (92%):

```sh
sudo apt install python3
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#python3
```

  证据: nixpkgs package indexes: python3 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- winget (92%):

```sh
winget install --id Python.Python.3.11 -e
```

  证据: Windows Package Manager source index: Python.Python.3.11 from https://cdn.winget.microsoft.com/cache/source.msix

- Chocolatey (92%):

```sh
choco install python311
```

  证据: Chocolatey community package catalog: python311 from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','python.pypy'

- Scoop (92%):

```sh
scoop install versions/python311
```

  证据: Scoop official bucket manifest trees: bucket/python311.json from https://api.github.com/repos/ScoopInstaller/Versions/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:python@3.11
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/python@3.11>
- **版本:** 3.11.15
- **来源摘要:** Interpreted, interactive, object-oriented programming language
- **主页:** <https://www.python.org/>
- **上游文档:** <https://www.python.org/>
- **许可证:** Python-2.0
- **源码归档:** <https://www.python.org/ftp/python/3.11.15/Python-3.11.15.tgz>
- **最后更新:** 2026-08-03T13:23:24+01:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 依赖

- mpdecimal
- openssl@3
- sqlite
- xz

## 构建依赖

- pkgconf

## macOS 提供的库

- bzip2
- expat
- libedit
- libffi
- libxcrypt
- ncurses

## 安装行为

- post-install 钩子: 已定义
- 注意事项: Python is installed as $HOMEBREW_PREFIX/bin/python3.11 Unversioned and major-versioned symlinks `python`, `python3`, `python-config`, `python3-config`, `pip`, `pip3`, etc. pointing to `python3.11`, `python3.11-config`, `pip3.11` etc., respectively, are installed into $HOMEBREW_PREFIX/opt/python@3.11/libexec/bin You can install Python packages with pip3.11 install <package> They will install into the site-package directory $HOMEBREW_PREFIX/lib/python3.11/site-packages `idle3.11` requires tkinter, which is available separately: brew install python-tk@3.11 gdbm (`dbm.gnu`) is no longer included in this formula, but it is available separately: brew install python-gdbm@3.11 `dbm.ndbm` changed database backends in Homebrew Python 3.11. If you need to read a database from a previous Homebrew Python created via `dbm.ndbm`, you'll need to read your database using the older version of Homebrew Python and convert to another format. `dbm` still defaults to `dbm.gnu` when it is installed. If you do not need a specific version of Python, and always want Homebrew's `python3` in your PATH: brew install python3 For more information about Homebrew and Python, see: https://docs.brew.sh/Homebrew-and-Python
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.11.15
- 管理器更新时间: 2026-08-03
- 本地数据: OK
- 上游仓库: https://www.python.org/
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

没有找到 python@3.11 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

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

- winget - Python.Python.3.11: normalized package name match | Windows Package Manager source index: Python.Python.3.11 from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - python311: package manager index match | MacPorts ports tree: lang/python311/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- dnf - python3.11 - 3.11.15-5.fc45: package manager index match | Fedora Rawhide package metadata: python3.11 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Version 3.11 of the Python interpreter | https://www.python.org/
- dnf - python3.11-debug - 3.11.15-5.fc45: package manager index match | Fedora Rawhide package metadata: python3.11-debug from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Debug version of the Python runtime | https://www.python.org/
- dnf - python3.11-devel - 3.11.15-5.fc45: package manager index match | Fedora Rawhide package metadata: python3.11-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Libraries and header files needed for Python development | https://www.python.org/
- dnf - python3.11-idle - 3.11.15-5.fc45: package manager index match | Fedora Rawhide package metadata: python3.11-idle from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A basic graphical development environment for Python | https://www.python.org/
- dnf - python3.11-libs - 3.11.15-5.fc45: package manager index match | Fedora Rawhide package metadata: python3.11-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Python runtime libraries | https://www.python.org/
- dnf - python3.11-test - 3.11.15-5.fc45: package manager index match | Fedora Rawhide package metadata: python3.11-test from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | The self-test suite for the main python3 package | https://www.python.org/
- dnf - python3.11-tkinter - 3.11.15-5.fc45: package manager index match | Fedora Rawhide package metadata: python3.11-tkinter from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A GUI toolkit for Python | https://www.python.org/
- zypper - python311 - 3.11.15-8.1: package manager index match | openSUSE Tumbleweed package metadata: python311 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Python 3 Interpreter | https://www.python.org/
- zypper - python311-32bit - 3.11.15-8.1: package manager index match | openSUSE Tumbleweed package metadata: python311-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Python 3 Interpreter | https://www.python.org/
- zypper - python311-curses - 3.11.15-8.1: package manager index match | openSUSE Tumbleweed package metadata: python311-curses from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Python Interface to the (N)Curses Library | https://www.python.org/
- zypper - python311-dbm - 3.11.15-8.1: package manager index match | openSUSE Tumbleweed package metadata: python311-dbm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Python Interface to the GDBM Library | https://www.python.org/
- zypper - python311-idle - 3.11.15-8.1: package manager index match | openSUSE Tumbleweed package metadata: python311-idle from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | An Integrated Development Environment for Python | https://www.python.org/
- zypper - python311-tk - 3.11.15-8.1: package manager index match | openSUSE Tumbleweed package metadata: python311-tk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | TkInter, a Python Tk Interface | https://www.python.org/
- zypper - python311-x86-64-v3 - 3.11.15-8.1: package manager index match | openSUSE Tumbleweed package metadata: python311-x86-64-v3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Python 3 Interpreter | https://www.python.org/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cassandra](https://pkg.so/zh-hans/brew/cassandra/) - Popular package that depends on this formula.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Package name indicates the same formula family.
- [python@3.13](https://pkg.so/zh-hans/brew/python-3-13/) - Package name indicates the same formula family.
- [python@3.12](https://pkg.so/zh-hans/brew/python-3-12/) - Package name indicates the same formula family.
- [python@3.10](https://pkg.so/zh-hans/brew/python-3-10/) - Package name indicates the same formula family.
- [python@3.9](https://pkg.so/zh-hans/brew/python-3-9/) - Package name indicates the same formula family.
- [python-freethreading](https://pkg.so/zh-hans/brew/python-freethreading/) - Shares pkgdb curated category or tags: cli, cpython, interpreter, language-runtime, python.
- [pypy](https://pkg.so/zh-hans/brew/pypy/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, python, runtime.
- [pypy3.10](https://pkg.so/zh-hans/brew/pypy3-10/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, python, runtime.

## Combined YAML source

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


## 来源

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