If you encountered the error
Failed to import module 'scour'. while saving a drawing as optimized SVG in Inkscape, it means you're missing the
scour package on your system. And here is a quick fix for Arch-based (Manjaro, EndeavourOS) and Debian/Ubuntu-based (e.g. Linux Mint, Pop!_OS, Elementary OS) Linux distros.
scour from AUR:
sudo pacman -S scour
yay -S scour
Don't know how to install packages on Arch based Linux? A full guide on Two Ways to Install Packages from AUR on Arch Linux/Manjaro.
sudo apt install python-scour
Alternative, you can install the missing module with
pip, which is the package installer for Python:
pip install scour