Skip to main content

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
Submitted by devanshi.srivastava on September 16, 2021

Devanshi, is working as a Data Scientist with iVagus. She has expertise in Python, NumPy, Pandas and other data science technologies.

About

At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.