Open In App

How to Install Scipy in Python on Windows?

Scipy is a python library that is useful in solving many mathematical equations and algorithms. It is designed on the top of Numpy library that gives more extension of finding scientific mathematical formulae like Matrix Rank, Inverse, polynomial equations, LU Decomposition, etc. Using its high-level functions will significantly reduce the complexity of the code and helps in better analyzing the data.

In this article, we will look into various methods of installing Scipy library on Windows.



Pre-requisites:

The only thing that you need for installing Scipy module on Windows are:

Installing Scipy on Windows:

For Conda Users:

If you want the installation to be done through conda, you can use the below command:



conda install scipy

Type y for yes when prompted.

You will get a similar message once the installation is complete

Make sure you follow the best practices for installation using conda as:

conda create -n my-env
conda activate my-env

Note: If your preferred method of installation is conda-forge, use the below command:

conda config --env --add channels conda-forge

For PIP Users:

Users who prefer to use pip can use the below command to install Scipy package on Windows:

pip install scipy

You will get a similar message once the installation is complete:

Note: As you can see in the above image, there are a couple of dependencies that are not resolved. This can be resolved by upgrading the PIP using the below command for proper functioning of Scipy library:

python --upgrade pip
pip install --use-feature=2020-resolver

Verifying Scipy Module Installation:

To verify if Scipy has been successfully installed in your system run the below code in a python IDE of your choice:




import scipy
scipy.__version__

If successfully installed you will get the following output.

Article Tags :