NumPy is a popular 3rd party Python library used for numerical operations. As a 3rd party module, it is not provided by default with Python. The NumPy can be installed in different ways (pip, package manager, installer) for different operating systems(Windows, Linux, MacOSX).
Install NumPy For Linux and MacOSX
The NumPy can be installed by using package manager, pip command for Linux distributions.
Install NumPy with pip Command (Ubuntu, Debian, Mint, Fedora, CentOS, RHEL)
The pip is the Python official package installer which can install all popular Python packages. the pip command can be used to install NumPy.
pip install numpy
In some cases Python3 uses the pip3 command in order to manage Python packages.
pip3 install numpy
Install NumPy with apt Package Manager (Ubuntu, Debian, Mint)
Linux distributions like Ubuntu, Debian, Mint etc. uses the apt or apt-get package manager in order to install packages. The NumPy can be installed by using apt or apt-get package manager.
sudo apt install python3-numpy

Install NumPy with dnf Package Manager (Fedora, CentOS, RHEL)
The Linux distributions like Fedora, CentOS, RHEL uses the dnf or yum commands for package managent. The NumPy command can be installed with the yum or dnf package manager like below.
sudo dnf install python3-numpy
Install NumPy For Windows
The NumPy can be also installed for Windows operating systems like Windows XP, Windows 8, Windows 10, or Windows Server. The pip package manager can be used to install NumPy in Windows. The pip or pip3 commands can be used to install NumPy.
pip3 install numpy
pip install numpy