Open In App

How to Install Scipy In Python on Linux?

Improve
Improve
Like Article
Like
Save
Share
Report

In this article, we are going to see how to install Scipy in Python on Linux, SciPy is a python library that is useful in solving many mathematical equations and algorithms, it is a free and open-source Python library built on top of the popular NumPy library.

To install Scipy on Linux:

There are generally two easy methods using which we can install SciPy on our Linux machine. One is simply using the inbuilt package manager that comes with the installation of Linux and the second is using the pip, the python package manager. Both the methods take merely a single command to install SciPy.

Method 1: Using the pip command:

Step 1: To install the SciPy run the following command, this command will install the SciPy and the required dependencies as well:

pip3 install numpy scipy matplotlib ipython jupyter pandas sympy nose
How to Install Scipy In Python on Linux?

Installing scipy

Step 2: To verify the installation, run the following command:

python3 -m pip show scipy
How to Install Scipy In Python on Linux?

Scipy installed

Method 2: Using Package Manager command:

Step 1: Install Aptitude package manager using the following command, Aptitude package manager is an interactive package manager for installing packages in the Linux system.

sudo apt install aptitude

Installation using aptitude

Step 2: Install Scipy using the aptitude package manager.

sudo aptitude install python3-scipy  
How to Install Scipy In Python on Linux?

Installing the scipy using aptitude

Note: You can also use the inbuilt package manager apt-get.

sudo apt-get install python3-scipy

Both the command will result, the successful installation of the scipy.

Installing the scipy using apt-get

Step 3: To verify the installation, run the following command:

Verifying the installation


Last Updated : 17 Oct, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads