Open In App

How to Install Python Module Six on MacOS?

Last Updated : 07 Nov, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Six libraries in Python are used to wrap the differences between Python 2 and Python 3 for systems that run on both Python 2 and Python 3. In this article, we will explore simple ways to install six module on macOS.

Pre-requisites:

Below are some recommended things that you should have for installing Six modules on macOS are:

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

Installing Six on macOS

Method 1: Installation using PIP

Users who prefer pip can install the Six modules on macOS using the following command in the terminal:

pip install six

You will get a similar message once the installation is complete.

Installation using pip

 

Verifying Six Module Installation using pip

To verify that Six has been successfully installed on your system, run the following command in the terminal:

pip show six

If successfully installed you will get the following output.

Verification using pip

 

Method 2: Installation using Conda

Same as above, Users who prefer conda can install the Six module on macOS using the following command in the terminal:

conda install six

Enter y when prompted for yes. Once the installation is complete, You will get a similar message.

Installation using Conda

Verifying Six Module Installation using conda:

To verify that Six has been successfully installed on your system, run the following command in the terminal:

conda list six

If successfully installed you will get the following output.

Verification Using Conda


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads