# Install python@3.13 with Homebrew, winget, chocolatey, dnf, MacPorts, scoop, zypper, apt, pacman, apk, Nix

Interpreted, interactive, object-oriented programming language. Version 3.13.14 via Homebrew; verified 2026-07-07.

## Install

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

## Agent safety answer

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

- **Credential access:** Reads environment variables, dotenv files, keyrings, and project config.
- **Remote mutation:** Can run API clients, deploy scripts, and package tools.
- **Publish/artifact risk:** Can build wheels, publish packages, and generate application artifacts.
- **Recommended control:** Gate publishing, deploy scripts, and secret-backed Python commands.
- **Agent-use guidance:** Allow tests and local scripts after scanning; require approval for publishing or network-mutating scripts.

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install python313
```

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

### Linux

- dnf (92%):

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

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

- zypper (92%):

```sh
sudo zypper install python313
```

  Evidence: openSUSE Tumbleweed package metadata: python313 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

- Debian apt (92%):

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

  Evidence: 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
```

  Evidence: 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 pyc
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: 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
```

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

- Chocolatey (92%):

```sh
choco install python313
```

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

- Scoop (92%):

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

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

## Package facts

- **Package key:** brew:python@3.13
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/python@3.13>
- **Version:** 3.13.14
- **Source summary:** Interpreted, interactive, object-oriented programming language
- **Homepage:** <https://www.python.org/>
- **Repository:** <https://github.com/python/cpython>
- **Upstream docs:** <https://docs.python.org/3.13>
- **License:** Python-2.0
- **Source archive:** <https://www.python.org/ftp/python/3.13.14/Python-3.13.14.tgz>
- **Last updated:** 2026-07-07T11:12:44Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- idle3.13 (cli)
- pip3.13 (cli)
- pydoc3.13 (cli)
- python3.13 (cli)
- python3.13-config (cli)
- wheel3.13 (cli)
- idle3.13 (alias)
- pip3.13 (alias)
- pydoc3.13 (alias)
- python3.13 (alias)
- python3.13-config (alias)
- wheel3.13 (alias)

## Dependencies

- mpdecimal
- openssl@3
- sqlite
- xz

## Build dependencies

- pkgconf

## Uses from macOS

- bzip2
- expat
- libedit
- libffi
- ncurses

## Install behavior

- Post-install hook: not defined
- Caveats: 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: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.13.14
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://www.python.org/
- info: Release/tag comparison is only available for GitHub repositories.

## Security Notes

No matching local secret-handling manifest was found for python@3.13. Nucleus package metadata is still published here so future coverage has a stable package URL.

- **Approval gate rules:** 6

## Source Database Details

- **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

## Other Package-Manager Records

- 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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+deb13u2: installed executable or alias 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)


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [sqlite](https://www.automicvault.com/pkg/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [xz](https://www.automicvault.com/pkg/brew/xz/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [chatblade](https://www.automicvault.com/pkg/brew/chatblade/) - Popular package that depends on this formula.
- [cloudformation-cli](https://www.automicvault.com/pkg/brew/cloudformation-cli/) - Popular package that depends on this formula.
- [dstack](https://www.automicvault.com/pkg/brew/dstack/) - Popular package that depends on this formula.
- [prowler](https://www.automicvault.com/pkg/brew/prowler/) - Popular package that depends on this formula.
- [sapling](https://www.automicvault.com/pkg/brew/sapling/) - Popular package that depends on this formula.
- [python@3.10](https://www.automicvault.com/pkg/brew/python-3-10/) - Package name indicates the same formula family.
- [python@3.11](https://www.automicvault.com/pkg/brew/python-3-11/) - Package name indicates the same formula family.
- [python@3.12](https://www.automicvault.com/pkg/brew/python-3-12/) - Package name indicates the same formula family.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Package name indicates the same formula family.
- [python@3.9](https://www.automicvault.com/pkg/brew/python-3-9/) - Package name indicates the same formula family.
- [python-freethreading](https://www.automicvault.com/pkg/brew/python-freethreading/) - Shares the same upstream homepage.

## Combined YAML source

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


## Sources

- Nucleus package database
- approval-gate seed metadata
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
