Installation of NumPy

Numpy is also known as an open-source library for the Python Programming language. It is mainly used for scientific computing. It is used to ease array computations.

How to install NumPy?

Numpy can be installed on various operating systems like Windows, Mac, Ubuntu etc. There is only one prerequisite for installing NumPy is Python itself, also make sure that you have the latest version of Python installed.

To install all types of python packages we can use the pip-package.
Pip Package is automatically installed with Python. We can easily use pip in the command line to install packages from PyPI. 

Here are some steps that you need to follow for installation of the NumPy Package:

Step 1: Open the terminal in MacBook or command prompt for Windows.

Step 2: Use the following pip command to install the NumPy Package. 

pip install numPy 

If you're having Python 3 use pip3 for the installation of the package.

pip3 install numpy

Step 3: By using show the command we can easily check whether NumPy is now part of your Python packages or not:

pip show numpy

For Python 3

pip3 show numpy

The output will show the confirmation of NumPy installation and it will also show the version which we are using and the place where the package is stored.

Step 4: Now, you can use the import command to start working with Numpy Package.

import numpy as np