How to Install Scipy In Python on Linux?
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
Step 2: To verify the installation, run the following command:
python3 -m pip show scipy
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
Step 2: Install Scipy using the aptitude package manager.
sudo aptitude install python3-scipy
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.
Step 3: To verify the installation, run the following command: