Skip to content

Installing Fabric

  1. Install Python

    Fabric requires Python version 3.11 or later. Check your distribution’s instructions or package manager to get the required version.

    • Arch Linux: sudo pacman -S python for the most recent version
    • OpenSUSE: sudo zypper install python311 for the most recent version of Python 3.11
  2. Install the Dependencies

    Fabric requires the following dependencies to run:

    • gtk3
    • cairo
    • gtk-layer-shell
    • libgirepository
    • gobject-introspection
    • gobject-introspection-runtime
    • python
    • python-pip
    • python-gobject
    • python-cairo
    • python-loguru
    • pkgconf

    Run the following command to install all the dependencies:

    • sudo pacman -S gtk3 cairo gtk-layer-shell libgirepository gobject-introspection gobject-introspection-runtime python python-pip python-gobject python-cairo python-loguru pkgconf
  3. Install Fabric

    You can either install Fabric globally (not recommended) or in a virtual environment.

Virtual Environment

The recommended way to install Fabric is through a virtual environment.

  1. To install this way, first make a folder for your new project (which going to include your new config file):
    Terminal window
    mkdir <your-folder-name>
  2. change directories to this new folder:
    Terminal window
    cd <your-folder-name>
  3. Create a new virtual environment:
    Terminal window
    python -m venv venv
  4. Source the newly created virtual environment:
    Terminal window
    source venv/bin/activate
  5. You can now install Fabric in your newly-created virtual environment.
    Terminal window
    pip install git+https://github.com/Fabric-Development/fabric.git@rewrite

Global Install

Alternatively, you can install Fabric globally using the following command:

Terminal window
pip install git+https://github.com/Fabric-Development/fabric.git@rewrite

This method is more prone to dependency issues.


Congrats! Fabric is now installed, and you can run and use it as long as you would like. To get auto-completion and type annotation functionality in your text editor, head over to the stubs installation guide.