Open In App

How to Install Fabric in Python on MacOS?

Fabric is a Python library for running shell commands remotely via SSH (Secure Shell), and in return, provides useful Python objects. It builds on Invoke (subprocess command execution and command line functionality) and Paramiko (SSH protocol implementation). In this article, we will explore simple ways to install fabric on macOS.

Pre Requisites

Below are some recommended things that you should have for installing the fabric module on macOS are:



Installing Fabric on MacOS

Installation Using PIP

Users who prefer pip can install the Fabric module on macOS using the following command in the terminal:

pip install fabric



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

 

Verifying Fabric Module Installation Using PIP

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

pip show fabric

If successfully installed you will get the following output.

 

Installation Using Conda

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

conda install fabric

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

 

Verifying Fabric Module Installation Using Conda

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

conda list fabric

If successfully installed you will get the following output.

 

Article Tags :