Open In App

How to Install Scipy In Python on Linux?

Last Updated : 04 Jul, 2025
Summarize
Comments
Improve
Suggest changes
Share
Like Article
Like
Report

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

Terminal_scipyinstall
Installation of SciPy using pip

4. Verify the installation

python3 -m pip show scipy

Terminal_Verifyinstall
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.

Terminal_aptinstall
Installation of Aptitude Package Manager

2. 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.

Terminal_scipyinstall_apt
Installation of SciPy using Aptitude

3. Install SciPy using apt-get

sudo apt-get install python3-scipy

Terminal_scipyinstall_aptget
Installation of SciPy using apt-get

4. 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.

verifyinstall
Verifying Installation

Similar Reads