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

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

## 安装

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

## 代理安全回答

python@3.13 runs scripts, tooling, and package workflows that often process secrets.

- **凭据访问:** Reads environment variables, dotenv files, keyrings, and project config.
- **远程变更:** Can run API clients, deploy scripts, and package tools.
- **发布/制品风险:** Can build wheels, publish packages, and generate application artifacts.
- **推荐控制:** Gate publishing, deploy scripts, and secret-backed Python commands.
- **代理使用指南:** Allow tests and local scripts after scanning; require approval for publishing or network-mutating scripts.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install python@3.13
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install python313
```

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

### Linux

- zypper (92%):

```sh
sudo zypper install python313
```

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

- dnf (92%):

```sh
sudo dnf install python3.13
```

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

- Debian apt (92%):

```sh
sudo apt install idle-python3.13
```

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

- 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

- 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

- Ubuntu apt (92%):

```sh
sudo apt install python3
```

  证据: Ubuntu 24.04 LTS package indexes: python3 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

### Windows

- winget (92%):

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

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

- Chocolatey (92%):

```sh
choco install python313
```

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

- Scoop (92%):

```sh
scoop install versions/python313
```

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

## 软件包事实

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

## 依赖

- mpdecimal
- openssl@3
- sqlite
- xz

## 构建依赖

- pkgconf

## macOS 提供的库

- bzip2
- expat
- libedit
- libffi
- ncurses

## 安装行为

- post-install 钩子: 未定义
- 注意事项: Python is installed as $HOMEBREW_PREFIX/bin/python3.13 Unversioned and major-versioned symlinks `python`, `python3`, `python-config`, `python3-config`, `pip`, `pip3`, etc. pointing to `python3.13`, `python3.13-config`, `pip3.13` etc., respectively, are installed into $HOMEBREW_PREFIX/opt/python@3.13/libexec/bin If you do not need a specific version of Python, and always want Homebrew's `python3` in your PATH: brew install python3 `idle3.13` requires tkinter, which is available separately: brew install python-tk@3.13 `dbm.gnu` is available separately: brew install python-gdbm@3.13 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.13.14
- 管理器更新时间: 2026-08-03
- 本地数据: OK
- 上游仓库: https://www.python.org/
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

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

- **审批门规则:** 6

## 源数据库详情

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

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

- winget - Python.Python.3.13: normalized package name match | Windows Package Manager source index: Python.Python.3.13 from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - python313: package manager index match | MacPorts ports tree: lang/python313/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - idle-python3.13 - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: idle-python3.13 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | IDE for Python (v3.13) using Tkinter
- Debian apt - libpython3.13 - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: libpython3.13 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Shared Python runtime library (version 3.13)
- Debian apt - libpython3.13-dbg - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: libpython3.13-dbg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Debug Build of the Python Interpreter (version 3.13)
- Debian apt - libpython3.13-dev - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: libpython3.13-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Header files and a static library for Python (v3.13)
- Debian apt - libpython3.13-minimal - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: libpython3.13-minimal from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Minimal subset of the Python language (version 3.13)
- Debian apt - libpython3.13-stdlib - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: libpython3.13-stdlib from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Interactive high-level object-oriented language (standard library, version 3.13)
- Debian apt - libpython3.13-testsuite - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: libpython3.13-testsuite from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Testsuite for the Python standard library (v3.13)
- Debian apt - python3.13 - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: python3.13 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Interactive high-level object-oriented language (version 3.13)
- Debian apt - python3.13-dbg - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: python3.13-dbg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Debug Build of the Python Interpreter (version 3.13)
- Debian apt - python3.13-dev - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: python3.13-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Header files and a static library for Python (v3.13)
- Debian apt - python3.13-doc - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: python3.13-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for the high-level object-oriented language Python (v3.13)
- Debian apt - python3.13-examples - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: python3.13-examples from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Examples for the Python language (v3.13)
- Debian apt - python3.13-full - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: python3.13-full from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python Interpreter with complete class library (version 3.13)
- Debian apt - python3.13-gdbm - 3.13.5-2+deb13u3: package manager index match | Debian stable package indexes: python3.13-gdbm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU dbm database support for Python (v3.13)


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [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.
- [snowflake-cli](https://pkg.so/zh-hans/brew/snowflake-cli/) - Popular package that depends on this formula.
- [prowler](https://pkg.so/zh-hans/brew/prowler/) - Popular package that depends on this formula.
- [dstack](https://pkg.so/zh-hans/brew/dstack/) - Popular package that depends on this formula.
- [cloudformation-cli](https://pkg.so/zh-hans/brew/cloudformation-cli/) - Popular package that depends on this formula.
- [chatblade](https://pkg.so/zh-hans/brew/chatblade/) - 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.12](https://pkg.so/zh-hans/brew/python-3-12/) - Package name indicates the same formula family.
- [python@3.11](https://pkg.so/zh-hans/brew/python-3-11/) - 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.

## Combined YAML source

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


## 来源

- pkg.so package database
- approval-gate seed metadata
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
