Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

How to Install Scipy in Python on Windows?

  • Last Updated : 09 Sep, 2021

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

installing scipy using conda

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

  • Use an environment for installation rather than in the base environment using the below command:
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:

installing scipy using PIP

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:

Python3




import scipy
scipy.__version__

If successfully installed you will get the following output.

verifying scipy installation

My Personal Notes arrow_drop_up
Recommended Articles
Page :