How to Install Scipy In Python on Linux?
Last Updated :
17 Oct, 2021
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
Installing scipy
Step 2: To verify the installation, run the following command:
python3 -m pip show scipy
Scipy installedMethod 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
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
Similar Reads
How to Install Python sympy on Linux? Sympy is a Python library that is used to perform symbolic mathematics operations. It is a full-featured algebra system that keeps the code as simple as possible for more simplicity and efficiency. Sympy library depends on some other Python libraries like mpmath which is a core python library to per
2 min read
How to Install Python-sh on Linux? In python, the sh package is a full-fledged sub-process replacement for Python 2.6 - 3.8, PyPy, and PyPy3 that allows you to call any program as if it were a function. So, in this article, we will be installing the sh package in Python on Linux operating system. Installing Sh package on Linux using
1 min read
How to Install SQLAlchemy in Python on Linux? SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that is used as flexible database access using SQL. In this article, we will look into the process of installing SQLAlchemy on a windows machine. Pre-requisites: The only thing that you need for installing Numpy on Windows are: Python
2 min read
How to Install Scipy in Python on MacOS? In this article, we will learn how to install Scipy in Python on MacOS. SciPy is a free and open-source Python library used for scientific computing and technical computing. SciPy contains modules for optimization, linear algebra, integration, interpolation, special functions, FFT, signal and image
2 min read
How to Install Python on Linux This guide explains how to install Python on Linux machines. Python has become an essential programming language for developers, data scientists, and system administrators. It's used for various applications, including web development, data science, automation, and machine learning.This comprehensiv
15+ min read