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

Interpreted, interactive, object-oriented programming language. Version 3.12.13 via Homebrew; verified 2026-06-25.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install python@3.12
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install python312
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install python3.12
```

  Evidence: Fedora Rawhide package metadata: python3.12 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 python312
```

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

- Ubuntu apt (92%):

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

  Evidence: Ubuntu 24.04 LTS package indexes: idle-python3.12 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- 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

- Debian apt (92%):

```sh
sudo apt install python3
```

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

  Evidence: 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.12 -e
```

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

- Chocolatey (92%):

```sh
choco install python312
```

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

- Scoop (92%):

```sh
scoop install versions/python312
```

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

## Package facts

- **Package key:** brew:python@3.12
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/python@3.12>
- **Version:** 3.12.13
- **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.12>
- **License:** Python-2.0
- **Source archive:** <https://www.python.org/ftp/python/3.12.13/Python-3.12.13.tgz>
- **Last updated:** 2026-06-25T13:38:05+02:00
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- 2to3-3.12 (cli)
- idle3.12 (cli)
- pip3.12 (cli)
- pydoc3.12 (cli)
- python3.12 (cli)
- python3.12-config (cli)
- wheel3.12 (cli)
- 2to3-3.12 (alias)
- idle3.12 (alias)
- pip3.12 (alias)
- pydoc3.12 (alias)
- python3.12 (alias)
- python3.12-config (alias)
- wheel3.12 (alias)

## Dependencies

- mpdecimal
- openssl@3
- sqlite
- xz

## Build dependencies

- pkgconf

## Uses from macOS

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

## Install behavior

- Post-install hook: not defined
- Caveats: Python is installed as $HOMEBREW_PREFIX/bin/python3.12 Unversioned and major-versioned symlinks `python`, `python3`, `python-config`, `python3-config`, `pip`, `pip3`, etc. pointing to `python3.12`, `python3.12-config`, `pip3.12` etc., respectively, are installed into $HOMEBREW_PREFIX/opt/python@3.12/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.12` requires tkinter, which is available separately: brew install python-tk@3.12 `dbm.gnu` is available separately: brew install python-gdbm@3.12 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-09
- Package-manager version: 3.12.13
- Package-manager updated: 2026-06-25
- 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.12. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** python@3.12
- **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

## Other Package-Manager Records

- winget - Python.Python.3.12: normalized package name match | Windows Package Manager source index: Python.Python.3.12 from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - python312: package manager index match | MacPorts ports tree: lang/python312/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Ubuntu apt - idle-python3.12 - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: idle-python3.12 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | IDE for Python (v3.12) using Tkinter
- Ubuntu apt - libpython3.12-dev - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libpython3.12-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Header files and a static library for Python (v3.12)
- Ubuntu apt - libpython3.12-minimal - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libpython3.12-minimal from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Minimal subset of the Python language (version 3.12)
- Ubuntu apt - libpython3.12-stdlib - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libpython3.12-stdlib from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Interactive high-level object-oriented language (standard library, version 3.12)
- Ubuntu apt - libpython3.12-testsuite - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libpython3.12-testsuite from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Testsuite for the Python standard library (v3.12)
- Ubuntu apt - libpython3.12t64 - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libpython3.12t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Shared Python runtime library (version 3.12)
- Ubuntu apt - libpython3.12t64-dbg - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libpython3.12t64-dbg from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Debug Build of the Python Interpreter (version 3.12)
- Ubuntu apt - python3.12 - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3.12 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Interactive high-level object-oriented language (version 3.12)
- Ubuntu apt - python3.12-dbg - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3.12-dbg from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Debug Build of the Python Interpreter (version 3.12)
- Ubuntu apt - python3.12-dev - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3.12-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Header files and a static library for Python (v3.12)
- Ubuntu apt - python3.12-doc - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3.12-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Documentation for the high-level object-oriented language Python (v3.12)
- Ubuntu apt - python3.12-examples - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3.12-examples from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Examples for the Python language (v3.12)
- Ubuntu apt - python3.12-full - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3.12-full from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python Interpreter with complete class library (version 3.12)
- Ubuntu apt - python3.12-minimal - 3.12.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3.12-minimal from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Minimal subset of the Python language (version 3.12)


## Related links

- [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.
- [aider](https://www.automicvault.com/pkg/brew/aider/) - Popular package that depends on this formula.
- [conan@1](https://www.automicvault.com/pkg/brew/conan-1/) - Popular package that depends on this formula.
- [llvm@16](https://www.automicvault.com/pkg/brew/llvm-16/) - 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.13](https://www.automicvault.com/pkg/brew/python-3-13/) - 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.12.yml](https://github.com/automic-vault/db/blob/main/combined/python@3.12.yml)


## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
