# Install numpy with Homebrew, chocolatey, apt, dnf

Package for scientific computing with Python. Version 2.5.1 via Homebrew; verified 2026-07-07.

## Install

```sh
sudo av install brew:numpy
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install numpy
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install python-numpy-doc
```

  Evidence: Debian stable package indexes: python-numpy-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install python3-numpy
```

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

- Ubuntu apt (92%):

```sh
sudo apt install python3-numpy
```

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

### Windows

- Chocolatey (92%):

```sh
choco install numpy
```

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

## Package facts

- **Package key:** brew:numpy
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/numpy>
- **Version:** 2.5.1
- **Source summary:** Package for scientific computing with Python
- **Homepage:** <https://www.numpy.org/>
- **Repository:** <https://github.com/numpy/numpy>
- **Upstream docs:** <https://numpy.org/doc/stable/index>
- **License:** BSD-3-Clause
- **Source archive:** <https://files.pythonhosted.org/packages/22/fd/89965aa4ac08c74998539fcbf24fa3540f3e15237fbeb6bcf9c908f4aade/numpy-2.5.1.tar.gz>
- **Last updated:** 2026-07-07T20:38:47Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- f2py (cli)
- numpy-config (cli)
- f2py (alias)
- numpy-config (alias)

## Dependencies

- openblas

## Build dependencies

- gcc
- meson
- ninja
- python@3.13
- python@3.14

## Install behavior

- Post-install hook: not defined
- Caveats: To run `f2py`, you may need to `brew install python@3.14`
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.5.1
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://www.numpy.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

NumPy is the foundational array package for scientific computing in Python. It supplies the `ndarray`, vectorized operations, broadcasting, linear algebra and numerical routines, a C API, and the `f2py` command-line interface for building Python bindings to Fortran code.

### Project history

The official NumPy about page says NumPy was created in 2005, building on Numeric and Numarray. The old SciPy history records the project as a reunion: Travis Oliphant wanted to bring the split Numeric/numarray community back to one array package, refactored Numeric to absorb numarray's features, and after naming discussion the multidimensional array project became NumPy.

### Adoption history

NumPy became the array substrate for the Python scientific stack. The 2020 Nature paper 'Array programming with NumPy' describes NumPy as a 2005 unification of Numarray's features with Numeric's small-array performance and C API, and says that by 2020 it underpinned almost every Python library doing scientific or numerical computation, including SciPy, Matplotlib, pandas, scikit-learn, and scikit-image.

### How it is used

Users install NumPy directly for dense arrays, vectorized math, broadcasting, random sampling, FFTs, statistics, basic linear algebra, and data interchange with other Python libraries. Package maintainers also care about the compiled-code boundary: `f2py` is distributed with NumPy as both `numpy.f2py` and a standalone command-line tool, making old Fortran routines callable from Python, while the C API supports extensions and downstream projects.

### Why package nerds care

For package ecosystems, NumPy is not just a library; it is an ABI, build, and compatibility gravity well. Python packages with native extensions often pin or test against NumPy versions, scientific Linux/macOS distributions ship optimized BLAS/LAPACK stacks underneath it, and Homebrew's formula page showed 333,990 installs over 365 days on July 1, 2026 despite Python users often installing it through pip or conda instead.

### Timeline

- 1990s-2000s: Numeric and then Numarray serve overlapping array-computing communities.
- 2005: NumPy is created by combining Numeric and Numarray ideas into one project.
- 2020: Nature publishes 'Array programming with NumPy', documenting its role across scientific Python.

### Related projects

- Numeric
- Numarray
- SciPy
- Matplotlib
- pandas
- scikit-learn
- scikit-image

### Sources

- <https://formulae.brew.sh/formula/numpy>
- <https://numpy.org/about/>
- <https://numpy.org/doc/stable/f2py/>
- <https://numpy.org/doc/stable/user/whatisnumpy.html>
- <https://scipy.github.io/old-wiki/pages/History_of_SciPy>
- <https://www.nature.com/articles/s41586-020-2649-2>


## Security Notes

No matching local secret-handling manifest was found for numpy. 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:** numpy
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - python-numpy-doc - 1:2.2.4+ds-1: normalized package name match | Debian stable package indexes: python-numpy-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python library for numerical computations (Documentation) | http://www.numpy.org/
- Debian apt - python3-numpy - 1:2.2.4+ds-1: normalized package name match | Debian stable package indexes: python3-numpy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python library for numerical computations (Python 3) | http://www.numpy.org/
- Debian apt - python3-numpy-dev - 1:2.2.4+ds-1: normalized package name match | Debian stable package indexes: python3-numpy-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python library for numerical computations (Python 3 headers) | http://www.numpy.org/
- Ubuntu apt - python3-numpy - 1:1.26.4+ds-6ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-numpy from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Fast array facility to the Python language (Python 3) | http://www.numpy.org/
- dnf - python3-numpy - 2.4.6-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-numpy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A fast multidimensional array facility for Python | http://www.numpy.org/
- dnf - python3-numpy-doc - 2.4.6-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-numpy-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation for numpy | http://www.numpy.org/
- dnf - python3-numpy-f2py - 2.4.6-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-numpy-f2py from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | f2py for numpy | http://www.numpy.org/
- Chocolatey - numpy: normalized package name match | Chocolatey community package catalog: numpy from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','ntlite-free'


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [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.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [gcc](https://www.automicvault.com/pkg/brew/gcc/) - Build dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [python@3.13](https://www.automicvault.com/pkg/brew/python-3-13/) - Build dependency declared by Homebrew.
- [acronym](https://www.automicvault.com/pkg/brew/acronym/) - Popular package that depends on this formula.
- [adios2](https://www.automicvault.com/pkg/brew/adios2/) - Popular package that depends on this formula.
- [astrometry-net](https://www.automicvault.com/pkg/brew/astrometry-net/) - Popular package that depends on this formula.
- [aubio](https://www.automicvault.com/pkg/brew/aubio/) - Popular package that depends on this formula.
- [badread](https://www.automicvault.com/pkg/brew/badread/) - Popular package that depends on this formula.
- [bagels](https://www.automicvault.com/pkg/brew/bagels/) - Popular package that depends on this formula.
- [bazarr](https://www.automicvault.com/pkg/brew/bazarr/) - Popular package that depends on this formula.
- [metis](https://www.automicvault.com/pkg/brew/metis/) - Shares av.db curated category or tags: cli, science, scientific-computing.
- [root](https://www.automicvault.com/pkg/brew/root/) - Shares av.db curated category or tags: cli, science, scientific-computing.
- [gsl](https://www.automicvault.com/pkg/brew/gsl/) - Shares av.db curated category or tags: cli, numerical-computing, science, scientific-computing.
- [octave](https://www.automicvault.com/pkg/brew/octave/) - Shares av.db curated category or tags: cli, numerical-computing, science, scientific-computing.
- [suite-sparse](https://www.automicvault.com/pkg/brew/suite-sparse/) - Shares av.db curated category or tags: cli, linear-algebra, numerical-computing, science.
- [calceph](https://www.automicvault.com/pkg/brew/calceph/) - Shares av.db curated category or tags: cli, science, scientific-computing.
- [clblas](https://www.automicvault.com/pkg/brew/clblas/) - Shares av.db curated category or tags: cli, linear-algebra, numerical-computing, science.
- [clblast](https://www.automicvault.com/pkg/brew/clblast/) - Shares av.db curated category or tags: cli, linear-algebra, numerical-computing, science.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
