How to Install Scipy In Python on Linux?
Last Updated :
04 Jul, 2025
SciPy is an open-source Python library used for scientific and technical computing. It builds on NumPy and provides a wide range of functions for linear algebra, optimization, integration, statistics and signal processing. If using Linux for Python development, installing SciPy is an important step for working with data science or scientific applications.
Linux offers flexibility when installing Python packages. You can use:
- Pip: Python’s built-in package installer (works across all Linux distros)
- System package managers (like apt for Ubuntu/Debian)
Below are simple step-by-step instructions for installation.
Method 1: Install SciPy using pip
This method works across all Linux distributions.
1. Open Terminal
2. Upgrade pip
pip3 install --upgrade pip
3. Install SciPy
Below command will install SciPy as well as required dependencies:
pip3 install numpy scipy matplotlib ipython jupyter pandas sympy nose
Installation of SciPy using pip4. Verify the installation
python3 -m pip show scipy
Verifying installation Method 2: Using Package Manager command
On Linux, install SciPy using a system package manager like apt, apt-get or aptitude. These tools install precompiled versions of packages from your distribution's repositories.
1. Install Aptitude Package Manager
Aptitude is an advanced interactive package manager. If not installed on your system, you can install it using:
sudo apt install aptitude
Above command installs the aptitude tool, which can be used to manage packages just like apt, but with improved conflict resolution and a text-based UI.
Installation of Aptitude Package Manager2. Install SciPy using aptitude
sudo aptitude install python3-scipy
This command fetches the SciPy package and its dependencies and installs them system-wide for Python 3.
Installation of SciPy using Aptitude3. Install SciPy using apt-get
sudo apt-get install python3-scipy
Installation of SciPy using apt-get4. Verify the installation
python3 -m pip show scipy
This command is used to display detailed information about the installed SciPy package in your Python 3 environment.
Verifying 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? SciPy is a popular open-source Python library for scientific computing, built on NumPy. It offers modules for optimization, linear algebra, integration, signal and image processing, statistics and more. If you're using macOS for Python development or data science, installing SciPy is an essential st
2 min read
How to Install Scipy in Python on MacOS? SciPy is a popular open-source Python library for scientific computing, built on NumPy. It offers modules for optimization, linear algebra, integration, signal and image processing, statistics and more. If you're using macOS for Python development or data science, installing SciPy is an essential st
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