Open In App

How to Install Python Six Module on Linux?

Last Updated : 31 Jan, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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:


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads