How to Install Seaborn on Linux? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Seaborn is a library mostly used for statistical plotting in Python. It is built on top of Matplotlib and provides beautiful default styles and color palettes to make statistical plots more attractive. Seaborn Dependencies: Seaborn has the following dependencies: Python 3.4+numpyscipypandasmatplotlibpipInstalling Seaborn on Linux: Use the below command in the terminal to install Seaborn: pip install seaborn In the terminal, it will look like this: After the installation is completed you will get a successfully installed message at the end of the terminal as shown below: After the installation let us see an example of a simple plot using Seaborn. We will be plotting a simple line plot using the iris dataset. Iris dataset contains five columns such as Petal Length, Petal Width, Sepal Length, Sepal Width, and Species Type. Iris is a flowering plant, the researchers have measured various features of the different iris flowers and recorded them digitally. Example: Python3 # importing packages import seaborn as sns # loading dataset data = sns.load_dataset("iris") # draw lineplot sns.lineplot(x="sepal_length", y="sepal_width", data=data) Output: In the above example, a simple line plot is created using the lineplot() method. Example 2: Plotting categorical scatter plots with Seaborn using Matplotlib. Python3 # Python program to illustrate # Plotting categorical scatter # plots with Seaborn # importing the required module import matplotlib.pyplot as plt import seaborn as sns # x axis values x =['sun', 'mon', 'fri', 'sat', 'tue', 'wed', 'thu'] # y axis values y =[5, 6.7, 4, 6, 2, 4.9, 1.8] # plotting strip plot with seaborn ax = sns.stripplot(x, y); # giving labels to x-axis and y-axis ax.set(xlabel ='Days', ylabel ='Amount_spend') # giving title to the plot plt.title('My first graph'); # function to show plot plt.show() Output: Here, Categorical data is represented on the x-axis and values correspond to them represented through the y-axis..striplot() function is used to define the type of the plot and to plot them on canvas using..set() function is used to set labels of x-axis and y-axis..title() function is used to give a title to the graph.To view plot we use .show() function. Comment More infoAdvertise with us Next Article How to Install Seaborn on Windows? D ddeevviissaavviittaa Follow Improve Article Tags : Installation Guide Blogathon-2021 how-to-install Similar Reads How to Install Tor on Linux? Tor browser is a web browser that is designed and developed to protect your privacy online and is mostly famous among normal people as a key for safely accessing hidden or restricted online resources, including those on the dark web. We will see what Tor is and how to install it on your Linux machin 5 min read How to Install NLTK on Linux? NLTK is Natural Language Tool Kit. It is used to build python programming. It helps to work with human languages data. It gives a very easy user interface. It supports classification, steaming, tagging, etc. In this article, we will look into the process of installing NLTK on Linux. Installing NLTK 1 min read How to Install Seaborn on MacOS? In this article, we will learn how to install seaborn in Python on MacOS. Seaborn is a library for making statistical graphics in Python. It is built on top of matplotlib and is closely integrated with pandas data structures. Installation:Method 1: Using pip to install Seaborn Package Follow the bel 2 min read How to Install Python-sh on Linux? In python, the sh package is a full-fledged sub-process replacement for Python 2.6 - 3.8, PyPy, and PyPy3 that allows you to call any program as if it were a function. So, in this article, we will be installing the sh package in Python on Linux operating system. Installing Sh package on Linux using 1 min read How to Install Seaborn on Windows? In this article, we will look into the process of installing Python Seaborn on Windows. Prerequisites:PythonPIP or conda (Depending upon user preference)For PIP Users: PIP users can open up the command prompt and run the below command to install Python Seaborn Package on Windows: pip install Seaborn 1 min read How to Install Python-Amara on Linux? Amara is a Python library for XML processing in a Python environment, designed to balance the native idioms of Python with the native character of XML. Amara is a cross-platformed library that works on Windows, Linux, and macOS. So in this article, we will be installing the Amara package in Python o 1 min read Like