| 1 |
Installation |
| 2 |
============ |
| 3 |
|
| 4 |
Beets requires `Python 3.10 or later`_. You can install it using uv_ or pip_. |
| 5 |
|
| 6 |
.. _python 3.10 or later: https://www.python.org/downloads/ |
| 7 |
|
| 8 |
Using ``uv tool`` or ``pip`` |
| 9 |
---------------------------- |
| 10 |
|
| 11 |
We recommend installing with ``uv tool`` as it isolates beets and its |
| 12 |
dependencies from your system Python and other Python packages. This helps avoid |
| 13 |
dependency conflicts and keeps your system clean. |
| 14 |
|
| 15 |
.. <!-- start-quick-install --> |
| 16 |
|
| 17 |
.. tab-set:: |
| 18 |
|
| 19 |
.. tab-item:: uv tool |
| 20 |
|
| 21 |
.. code-block:: console |
| 22 |
|
| 23 |
uv tool install beets |
| 24 |
|
| 25 |
.. tab-item:: pipx |
| 26 |
|
| 27 |
.. code-block:: console |
| 28 |
|
| 29 |
pipx install beets |
| 30 |
|
| 31 |
.. tab-item:: pip |
| 32 |
|
| 33 |
.. code-block:: console |
| 34 |
|
| 35 |
pip install beets |
| 36 |
|
| 37 |
.. tab-item:: pip (user install) |
| 38 |
|
| 39 |
.. code-block:: console |
| 40 |
|
| 41 |
pip install --user beets |
| 42 |
|
| 43 |
.. <!-- end-quick-install --> |
| 44 |
|
| 45 |
If you don't have uv_ installed, you can follow the `uv installation |
| 46 |
instructions`_ to get it set up. |
| 47 |
|
| 48 |
.. _pip: https://pip.pypa.io/en/stable/ |
| 49 |
|
| 50 |
.. _uv: https://docs.astral.sh/uv/ |
| 51 |
|
| 52 |
.. _uv installation instructions: https://docs.astral.sh/uv/getting-started/installation/ |
| 53 |
|
| 54 |
Managing Plugins with ``uv tool`` |
| 55 |
--------------------------------- |
| 56 |
|
| 57 |
When using ``uv tool``, you can install beets with built-in plugin dependencies |
| 58 |
using extras, include third-party packages, and upgrade everything cleanly. |
| 59 |
|
| 60 |
Install beets with extras for built-in plugins: |
| 61 |
|
| 62 |
.. code-block:: console |
| 63 |
|
| 64 |
uv tool install "beets[lyrics,lastgenre]" |
| 65 |
|
| 66 |
If you already have beets installed, reinstall with a new set of extras: |
| 67 |
|
| 68 |
.. code-block:: console |
| 69 |
|
| 70 |
uv tool install --force "beets[lyrics,lastgenre]" |
| 71 |
|
| 72 |
Include additional packages in the beets environment (useful for third-party |
| 73 |
plugins): |
| 74 |
|
| 75 |
.. code-block:: console |
| 76 |
|
| 77 |
uv tool install --force --with <package-name> beets |
| 78 |
|
| 79 |
To upgrade beets and included packages: |
| 80 |
|
| 81 |
.. code-block:: console |
| 82 |
|
| 83 |
uv tool upgrade beets |
| 84 |
|
| 85 |
Installation FAQ |
| 86 |
---------------- |
| 87 |
|
| 88 |
Windows Installation |
| 89 |
~~~~~~~~~~~~~~~~~~~~ |
| 90 |
|
| 91 |
**Q: What's the process for installing on Windows?** |
| 92 |
|
| 93 |
Installing beets on Windows can be tricky. Following these steps might help you |
| 94 |
get it right: |
| 95 |
|
| 96 |
1. `Install Python`_ (check "Add Python to PATH" skip to 3) |
| 97 |
2. Ensure Python is in your ``PATH`` (add if needed): |
| 98 |
|
| 99 |
- Settings → System → About → Advanced system settings → Environment |
| 100 |
Variables |
| 101 |
- Edit "PATH" and add: `;C:\Python39;C:\Python39\Scripts` |
| 102 |
- *Guide: [Adding Python to |
| 103 |
PATH](https://realpython.com/add-python-to-path/)* |
| 104 |
|
| 105 |
3. Now install beets by running: ``pip install beets`` |
| 106 |
4. You're all set! Type ``beet version`` in a new command prompt to verify the |
| 107 |
installation. |
| 108 |
|
| 109 |
.. note:: |
| 110 |
|
| 111 |
The classic Windows console (``cmd.exe``) does not display beets' output |
| 112 |
(special characters and colors) correctly. For a usable experience, run |
| 113 |
beets in a terminal emulator such as `Windows Terminal`_ or cmder_, or in a |
| 114 |
Unix-like shell such as Git Bash. |
| 115 |
|
| 116 |
.. _cmder: https://cmder.app/ |
| 117 |
|
| 118 |
.. _windows terminal: https://aka.ms/terminal |
| 119 |
|
| 120 |
**Bonus: Windows Context Menu Integration** |
| 121 |
|
| 122 |
Windows users may also want to install a context menu item for importing files |
| 123 |
into beets. Download the beets.reg_ file and open it in a text file to make sure |
| 124 |
the paths to Python match your system. Then double-click the file add the |
| 125 |
necessary keys to your registry. You can then right-click a directory and choose |
| 126 |
"Import with beets". |
| 127 |
|
| 128 |
.. _beets.reg: https://github.com/beetbox/beets/blob/master/extra/beets.reg |
| 129 |
|
| 130 |
.. _install pip: https://pip.pypa.io/en/stable/installing/ |
| 131 |
|
| 132 |
.. _install python: https://www.python.org/downloads/ |
| 133 |
|
| 134 |
ARM Installation |
| 135 |
~~~~~~~~~~~~~~~~ |
| 136 |
|
| 137 |
**Q: Can I run beets on a Raspberry Pi or other ARM device?** |
| 138 |
|
| 139 |
Yes, but with some considerations: Beets on ARM devices is not recommended for |
| 140 |
Linux novices. If you are comfortable with troubleshooting tools like ``pip``, |
| 141 |
``make``, and binary dependencies (e.g. ``ffmpeg`` and ``ImageMagick``), you |
| 142 |
will be fine. We have `notes for ARM`_ and an `older ARM reference`_. Beets is |
| 143 |
generally developed on x86-64 based devices, and most plugins target that |
| 144 |
platform as well. |
| 145 |
|
| 146 |
.. _notes for arm: https://github.com/beetbox/beets/discussions/4910 |
| 147 |
|
| 148 |
.. _older arm reference: https://discourse.beets.io/t/diary-of-beets-on-arm-odroid-hc4-armbian/1993 |
| 149 |
|
| 150 |
Package Manager Installation |
| 151 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 152 |
|
| 153 |
**Q: Can I install beets using my operating system's built-in package manager?** |
| 154 |
|
| 155 |
We generally don't recommend this route. OS package managers tend to ship |
| 156 |
outdated versions of beets, and installing third-party plugins into a |
| 157 |
system-managed environment ranges from awkward to impossible. You'll have a much |
| 158 |
better time with ``uv tool`` or pip_ as described above. |
| 159 |
|
| 160 |
That said, if you know what you're doing and prefer your system package manager, |
| 161 |
here are the options available: |
| 162 |
|
| 163 |
- **Debian/Ubuntu** (`Debian <debian details_>`_, `Ubuntu <ubuntu details_>`_): |
| 164 |
``apt-get install beets`` |
| 165 |
- **Arch Linux** (`extra <arch btw_>`_, `AUR dev <aur_>`_): ``pacman -S beets`` |
| 166 |
- **Alpine Linux** (`package <alpine package_>`_): ``apk add beets`` |
| 167 |
- **Void Linux** (`package <void package_>`_): ``xbps-install -S beets`` |
| 168 |
- **Gentoo Linux**: ``emerge beets`` (USE flags available for optional plugin |
| 169 |
deps) |
| 170 |
- **FreeBSD** (`port <freebsd_>`_): ``audio/beets`` |
| 171 |
- **OpenBSD** (`port <openbsd_>`_): ``pkg_add beets`` |
| 172 |
- **Fedora** (`package <dnf package_>`_): ``dnf install beets beets-plugins |
| 173 |
beets-doc`` |
| 174 |
- **Solus**: ``eopkg install beets`` |
| 175 |
- **NixOS** (`package <nixos_>`_): ``nix-env -i beets`` |
| 176 |
- **Homebrew** (`formula <homebrew_>`_): ``brew install beets`` |
| 177 |
- **MacPorts**: ``port install beets`` or ``port install beets-full`` (includes |
| 178 |
third-party plugins) |
| 179 |
|
| 180 |
.. _alpine package: https://pkgs.alpinelinux.org/package/edge/community/x86_64/beets |
| 181 |
|
| 182 |
.. _arch btw: https://archlinux.org/packages/extra/any/beets/ |
| 183 |
|
| 184 |
.. _aur: https://aur.archlinux.org/packages/beets-git/ |
| 185 |
|
| 186 |
.. _debian details: https://tracker.debian.org/pkg/beets |
| 187 |
|
| 188 |
.. _dnf package: https://packages.fedoraproject.org/pkgs/beets/ |
| 189 |
|
| 190 |
.. _freebsd: https://www.freshports.org/audio/beets/ |
| 191 |
|
| 192 |
.. _homebrew: https://formulae.brew.sh/formula/beets |
| 193 |
|
| 194 |
.. _nixos: https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/python-modules/beets |
| 195 |
|
| 196 |
.. _openbsd: https://openports.pl/path/audio/beets |
| 197 |
|
| 198 |
.. _ubuntu details: https://launchpad.net/ubuntu/+source/beets |
| 199 |
|
| 200 |
.. _void package: https://github.com/void-linux/void-packages/tree/master/srcpkgs/beets |