Since Bookworm and later don't accept installing Python stuff using pip anymore, all the guides don't work anymore. So I decided to write my own guide.
So, lets get started.
Qtile has never been included in the official Debian distribution so debian's usual package installation method (sudo apt install qtile) will not work. Instead, qtile's recommended installation method has, up until now, been pip install ....
However, Debian, Ubuntu and Fedora have all recently made stable releases which incorporate PEP-668 - this is a change to the python ecosystem designed to avoid system environment breakage caused by using potentially conflicting package managers (for example sudo apt install vs. pip install). One consequence of this change is that we can no longer use pip install ... to install system packages as we did previously.
PEP-668 is basically a safety mechanism that stops pip from installing into your python "system environment". There are several different ways to override (i.e. ignore) this safety mechanism.
While this approach is chosen by many users, I want to avoid it if possible. I personally think that PEP-668 is a move in the right direction, and that letting pip modify your system environment is a retrograde step (When your system breaks, you will get to keep both pieces).
So, how i installed Qtile?
Install package, called pipx.
Code: Select all
apt install --no-install-recommends pipx
Code: Select all
apt install xserver-xorg-core xserver-xorg-input-libinput xinit libpangocairo-1.0-0 python3-xcffib python3-cairocffi
Code: Select all
apt install rxvt-unicode
Code: Select all
mkdir -p ~/.local/bin
Code: Select all
pipx install qtile
Code: Select all
touch .xinitrc
Code: Select all
exec qtile start
P.S.
You can also install other modules for widgets like psutil, dbus-next with command
Code: Select all
pipx inject qtile dbus-next psutil
Good luck.