Open In App

How to Install Nilearn in Python on Windows?

Last Updated : 27 Dec, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Nilearn is an open-source library written purely in Python for quick and easy statistical learning on neuroimaging data. It provides statistical and machine learning tools with educational documentation and an open community. The Nilearn library is a cross-platform library for various operating systems including Windows, Linux, and Windows. In this article, we will see an easy way to install Nilearn Library on Windows. Below are some recommended things that you should have for installing the Nilearn Library on Windows are:

  • Python
  • PIP or Conda (Depending upon user preference)

Installation of Nilearn Library in Python on Windows

Step 1: Installation of Nilearn library in Python.

For PIP Users

Users who prefer pip can install the Nilearn Library on Windows using the following command in the Command Prompt:

pip install nilearn

After the installation has been completed successfully, you will receive a similar message on your command prompt.

Installing-nilearn-using-pip

 

For Conda User

Same as above, Users who prefer conda can install the Nilearn Library on Windows using the following command in the Command Prompt:

conda install -c conda-forge nilearn

Enter y when prompted for yes. You will receive a similar message on your command prompt after the installation has been completed successfully.

Installing-nilearn-using-conda

 

Step 2: Verification of Nilearn library in Python.

For PIP Users

To verify that Nilearn has been successfully installed on your system, run the following command in the Command Prompt:

pip show nilearn

If successfully installed you will get the following output on your command prompt.

Verifying-nilearn-using-pip

 

For Conda Users

To verify that Nilearn has been successfully installed on your system, run the following command in the Command Prompt:

conda list nilearn

If successfully installed you will get the following output on your command prompt.

verifying-nilearn-using-conda

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads