.. _spkg_numpy:

numpy: Package for scientific computing with Python
===================================================

Description
-----------

This package adds numerical linear algebra and other numerical computing
capabilities to python.


Upstream Contact
----------------

-  https://numpy.org/
-  Travis Oliphant
-  Fernando Perez
-  Brian Granger

Special Update/Build Instructions
---------------------------------

-  Scipy uses numpy's distutils to control its compilation of fortran
   code.

   Whenever numpy is updated it is necessary to make sure that scipy
   still builds ok.

Type
----

standard


Dependencies
------------

- $(PYTHON)
- $(BLAS)
- :ref:`spkg_gfortran`
- $(PYTHON_TOOLCHAIN)
- :ref:`spkg_pkgconfig`
- :ref:`spkg_cython`

Version Information
-------------------

package-version.txt::

    1.22.4

install-requires.txt::

    numpy >=1.19


Equivalent System Packages
--------------------------

conda:

.. CODE-BLOCK:: bash

    $ conda install  numpy


homebrew:

.. CODE-BLOCK:: bash

    $ brew install numpy


macports:
install the following packages: py-numpy

void:

.. CODE-BLOCK:: bash

    $ sudo xbps-install  python3-numpy


See https://repology.org/project/python:numpy/versions


However, these system packages will not be used for building Sage
because using Python site-packages is not supported by the Sage distribution;
see :trac:`29023`

