# 使用 Homebrew, chocolatey, apt, dnf 安装 numpy

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install numpy
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

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

  证据: 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
```

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

- Ubuntu apt (92%):

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

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:numpy
- **软件包管理器:** Homebrew
- **版本:** 2.5.1
- **来源摘要:** Package for scientific computing with Python
- **主页:** <https://www.numpy.org/>
- **仓库:** <https://github.com/numpy/numpy>
- **最后更新:** 2026-07-07T20:38:47Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- f2py (别名)
- numpy-config (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.5.1
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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

### 来源

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


## 安全说明

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


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

- 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.5.1-3.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A fast multidimensional array facility for Python | http://www.numpy.org/
- dnf - python3-numpy-doc - 2.5.1-3.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for numpy | http://www.numpy.org/
- dnf - python3-numpy-f2py - 2.5.1-3.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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','nordvpn-teams'


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
