Installing Fabric
-
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
- Arch Linux:
-
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
(tested on Tumbleweed)
sudo zypper install gtk3-devel cairo-devel gtk-layer-shell-devel libgirepository-1_0-1 libgirepository-2_0-0 gobject-introspection-devel python311 python311-pip python311-gobject python311-gobject-cairo python311-pycairo python311-loguru pkgconf
-
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.
- To install this way, first make a folder for your new project (which going to include your new config file):
- change directories to this new folder:
- Create a new virtual environment:
- Source the newly created virtual environment:
- You can now install Fabric in your newly-created virtual environment.
Global Install
Alternatively, you can install Fabric globally using the following command:
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.