Open In App

Setup Numpy on PyCharm

Last Updated : 04 Nov, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Numpy is a Python library used for scientific calculations. You can work on linear algebra, Fourier transforms, statistical operations, random simulation, and matrices using this library. Apart from that, this library has many more functions to support fast and lengthy calculations. You can use this library for free and also contribute as it is an open-source project.

Anaconda provides Python distribution that also includes Python programming language along with a large number of data science and scientific computing packages. It is very beneficial for data scientists and researchers because it comes with package management tools like Conda that make it easier to install, update, and manage various Python packages. Anaconda Distribution allows us to create isolated Python environments that is helpful to manage dependencies between projects. In this article, we will discuss different ways to set up NumPy in Anaconda.

Install NumPy on Anaconda

We can set NumPy on Anaconda by using two ways:

  • Using Conda in Anaconda
  • Using pip

Setup NumPy Using Conda in Anaconda

Below are the steps by which we can install Numpy on Anaconda:

Step 1: Install Anaconda

In this step, we will install Anaconda in our system. You can refer to install Anaconda for more information.

Step 2: Open Anaconda Prompt

In this step, we will open Anaconda Prompt where we will start our installation process.

Screenshot-(11)

Step 3: Write NumPy Installation Command

In this step, after opening the anaconda prompt, we will write the following command

conda install numpy

Step 4: Click Yes to Proceed

Now click yes to proceed the installation further as shown in the figure below

Screenshot-(13)

Step 5: Installation Complete

Now, we can see that the installation is complete!!

Screenshot-(14)

Setup Numpy Using PIP

We can also install numpy by using pip. Just open Anaconda Prompt at first and then type the following command in the terminal.

pip install numpy

Screenshot-(16)

Verify the Setup

We can also verify our setup by using the following steps:

Step 1: Write Python in the Terminal

In this step, we will write Python in our terminal as shown below in the figure.

Step 2: Check Version

In order to check if the numpy package is property is installed, you can check the version of numpy. Write the following command in the editor and run the code.

Python3




import numpy as np
print(np.__version__)


If everything is properly set you’ll see the version of numpy as output on your screen.

Output

Screenshot-(21)

NumPy Version



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads