Skip to content
Related Articles

Related Articles

How to Install Python Six Module on Linux?

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 31 Jan, 2022

Six is a Python library that is used to wrap the differences between Python 2 and Python 3 for those systems that work on both Python 2 and Python 3. It is compatible with both Python 2 and Python 3 and can only contain one Python file which makes it easier to add to your projects. In this, article, we will look into the steps of installing Python Six Library on the Linux Operating System.

Requirements:

Installing Six package on Linux using PIP

To install the Six package in Linux we have to follow the following steps:

Step 1: First of all, we will install Python3 on Linux Machine using the following command:

sudo apt-get install python3

Installing-Python3-on-Linux

Step 2: Now, install the pip module which is required to manage and install the Python3 packages using the following command:

sudo apt install python3-pip

installing-the-pip-module

Step 3: Now, install the Six package by using the following command.

sudo pip3 install six 

or 

sudo apt-get install python3-six

Installing-the-Six-package

Verifying Six package installation on Linux using PIP

To verify if the Six package has been successfully installed in your system run the below command in Terminal:

python3 -m pip show six

You’ll get the below message if the installation is completed successfully without any error:

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!