Table of Contents Hide
This tutorial will learn how to install Seaborn in Python using the Pip command.
Seaborn is a library for making statistical graphics in Python. It is built on top of matplotlib and closely integrated with pandas data structures
Pip is a recursive acronym for “Pip Installs Packages” or “Pip Installs Python.” Basically, it is a package manager that allows you to download and install packages.
Supported Python Version
Python 3.6+ (Recommended)
Note: If you are installing the latest version of Seaborn, the recommended version of Python is 3.6 and above.
These are the dependent libraries that need to be present. If not already present, these libraries will be downloaded when you install seaborn.
- statsmodels, for advanced regression plots
- fastcluster, for clustering large matrices
How to Install Seaborn in Python using the Pip Command
Before installing the Seaborn, ensure you have the latest version of Pip installed on your computer.
If Pip is not installed correctly or not present, check out the article pip: command not found to resolve the issue.
To install the latest version of Seaborn, run the following pip command.
pip install seaborn
For Python version 3+, it is recommended to use the pip3 command to install the seaborn, as shown below.
pip3 install seaborn
If you would like to install a specific version of Seaborn, you can provide the version number in the pip command as shown below.
pip3 install seaborn==0.11.2
The library is also included as part of Anaconda distribution. You can run the below conda command to install Seaborn on Anaconda.
conda install seaborn