How to install python package vosk system wide?

Don’t get blinded by the package manager and AUR - you don’t have to.

Repeating myself - advise from above

sudo pacman -Syu pipx
pipx install vosk

Using pipx - you install from pypi and it works for vosk too - it is installed systemwide in the sense it can be run from any commandline - but it is not installed for other users on a multihomed system

  • pipx — Closely related to pip, but creates, for the user running it, an isolated environment for each application and its associated packages, preventing conflicts with system packages. Focused on packages that can be run from the command line directly as applications. You can use pipx to install packages from the Python Package Index and other indexes.

pipx || python-pipx

Python Package management - Arch Wiki

Also see → [Python Troubleshoting - ArchWiki]

2 Likes