NumPy (Numerical Python) is an extension library of the Python language that supports a large number of dimensional array and matrix operations. In addition, it also provides a large number of mathematical function libraries for array operations.
#The release version on the Python official website does not include the NumPy module. (Recommended learning: Python video tutorial)
Use pip to install
The easiest way to install NumPy is to use the pip tool:
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
--user option can be set to only install under the current user instead of writing to the system directory.
NumPy’s predecessor, Numeric, was first developed by Jim Hugunin and other collaborators. In 2005, Travis Oliphant combined the features of another library of the same nature, Numarray, into Numeric, and added other NumPy was developed as an extension. NumPy is open source and maintained and developed by many collaborators.
NumPy is a very fast mathematics library, mainly used for array calculations, including:
A powerful N-dimensional array object ndarray
Broadcast function function
Tools for integrating C/C/Fortran code
Linear algebra, Fourier transform, random number generation and other functions
NumPy is usually combined with SciPy (Scientific Python) and Matplotlib (drawing library), this combination is widely used to replace MatLab. It is a powerful scientific computing environment that helps us learn data science or machine learning through Python.
SciPy is an open source Python algorithm library and mathematical toolkit.
SciPy includes modules for optimization, linear algebra, integration, interpolation, special functions, fast Fourier transform, signal processing and image processing, solving ordinary differential equations, and other calculations commonly used in science and engineering.
Matplotlib is a visual operating interface for the Python programming language and its numerical mathematics extension package NumPy. It provides an application programming interface (API) for embedded drawing into applications using common GUI toolkits such as Tkinter, wxPython, Qt or GTK.
For more Python related technical articles, please visit the Python Tutorial column to learn!
The above is the detailed content of How to install numpy library in python. For more information, please follow other related articles on the PHP Chinese website!