Skip to content

Installing Beets

Outcome: a beet command that runs and can state its version, before any music is involved. Beets is a Python program, and the one decision this chapter really contains is where to put it so it stays out of your system's way.

The lab's way: a virtual environment

The lab installed beets 2.14.1 from PyPI, the Python package index, into a virtual environment — a self-contained folder holding its own Python packages:

python3 -m venv ~/beets-venv
~/beets-venv/bin/pip install beets

Nothing lands in the system Python, nothing needs administrator rights, and deleting the folder uninstalls beets completely. The price is that the program's full name is ~/beets-venv/bin/beet until you either activate the environment (source ~/beets-venv/bin/activate) or make an alias. The lab simply called the long path every time; its transcripts shorten it to beet.

Two extras went into the lab's environment, both because a plugin needed them — install them the same way if you follow chapters 8 and 9:

~/beets-venv/bin/pip install flask flask-cors pillow

flask (with flask-cors) is the web framework the web plugin serves through; without it, beets starts with an error about loading that plugin and continues minus one plugin. pillow is the image library the art machinery uses to inspect pictures. Core beets needs neither.

The check

beet version
beets version 2.14.1
Python version 3.12.3
plugins: musicbrainz

That output is the whole acceptance test (transcript t00-versions-and-help.txt keeps it, along with beet help). The plugins line lists what loaded; a fresh install shows only musicbrainz, the built-in matching backend. If your version differs, do not worry: this guide's commands are stable across recent versions, and where 2.14.1 itself behaved oddly, the chapters say so and name the version.

The other ways in

The beets documentation also offers pipx install beets (pipx keeps Python applications in private environments like the one above, but managed for you), operating-system packages on some distributions, and running from a source checkout. All are legitimate; the lab verified only the PyPI-into-venv route, and every command in this guide assumes it. One warning the lab earned honestly: beets is a command-line tool with interactive habits — several commands stop and ask questions — so the first time you run anything, run it in a real terminal, not from a script. Chapter 13 explains what happens when its questions meet a script with no answers.