Demucs Guide

Install Demucs on macOS

You will type a few commands into a terminal. This page tells you what to type and what you should see.

First, open a terminal

A terminal is a window where you type commands instead of clicking. On a Mac it is the Terminal app. Press Cmd + Space, type "Terminal" and press Enter.

Type a command, press Enter, and wait until a new line appears. That means it finished.

What you will end up with

A demucs command that works from any folder. Give it a song and it writes four files: vocals, drums, bass and other. The next page walks through that part.

The steps

Two commands. First install uv, a small tool that fetches and runs Python programs. This is what the official page uses.

brew install uv

Open a new terminal so the uv command is found, then split a song. Replace the name with your own file:

uvx --python 3.12 --with numpy demucs "your-song.mp3"

The official page says uvx demucs on its own. We added --with numpy because of a bug we hit on Linux: the published Demucs 4.1.0 forgets to list numpy, and the first run stops with ModuleNotFoundError: No module named 'numpy'. Its package file lists numpy only for Intel Macs, so this most likely affects Apple Silicon Macs too, but we have not confirmed it there. Details on the Fixes page. If you do not see that error, the extra bit does no harm.

Intel Mac? The official page says to pin the Python version, because PyTorch stopped supporting Intel Macs after version 2.2. It gives uvx --python 3.12 demucs. The command above already includes that pin together with the numpy addition. We have not run it on a Mac.

Good to know