Installing AUTOMATIC1111 on VoidLinux

July 18, 2023 - Reading time: ~1 minute

As of Jul 2023 VoidLinux comes with Python 3.11 which is incompatible with PyTorch.

Anaconda and Nix come with libstdc++ ABI version 5 where AUTOMATIC1111 requires version 6 (as available in VoidLinux).

Here I show how to build Python 3.10 XBPS package and install AUTOMATIC1111.

Python 3.10 on VoidLinux

VoidLinux packages are only available for latest major Python version (2 and 3).

I have made a package fro 3.10 that can be found on my GitHub on python310 branch:

git clone https://github.com/jpastuszek/void-packages.git
cd void-packages
git checkout python310
./xbps-src pkg python3.10
xi python3.10

Installing and running AUTOMATIC1111

After you have working python3.10 command you can run AUTOMATIC1111 like so:

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
# if you have GPU with CUDA support skip the flags
./webui.sh --skip-torch-cuda-test --no-half
Mastodon