Install
Install MarkItDown on Linux
On a current Debian or Ubuntu a plain pip install is refused, because the system Python is marked as managed by the package manager. We installed MarkItDown 0.1.9 five ways in five fresh containers; pipx, uv and a virtual environment all worked everywhere, and the refusal appeared on Ubuntu 24.04 and Debian 12 and 13.
Short answer
On Ubuntu or Debian:
sudo apt install pipx
pipx install "markitdown[all]"Then check with markitdown --version. Do not use --break-system-packages. uv or a virtual environment work as well (install page).
Tested with markitdown 0.1.9 · Python Fresh containers on a GitHub-hosted Ubuntu runner: Ubuntu 22.04 and 24.04, Debian 12 and 13, Fedora 42, each run as root (T02). WSL was not tested · 2026-11-16 · evidence: linux-distros.csv, ubuntu-24.04.log, debian-12.log, debian-13.log
Tested distributions at a glance
| Distribution | Python | Python marked externally managed | Plain pip | pipx install size | venv size | uv tool, Python 3.13 | ExifTool | ffmpeg |
|---|---|---|---|---|---|---|---|---|
| ubuntu-22.04 | 3.10.12 | no | installed | 447M | ok | 12.40 | 4.4.2-0ubuntu0.22.04.1 | |
| ubuntu-24.04 | 3.12.3 | yes | refused (PEP 668) | 410M | 425M | ok | 12.76 | 6.1.1-3ubuntu5 |
| debian-12 | 3.11.2 | yes | refused (PEP 668) | 420M | 446M | ok | 12.57 | 5.1.9-0+deb12u1 |
| debian-13 | 3.13.5 | yes | refused (PEP 668) | 410M | 422M | ok | 13.25 | 7.1.5-0+deb13u1 |
| fedora-42 | 3.13.13 | no | installed | 410M | 421M | ok | 13.50 | 7.1.4 |
error: externally-managed-environment
What it means
The distribution marks its own Python as managed by its package manager (PEP 668), so pip will not install into it and risk breaking system tools. The message ends like this:
$ python3 -m pip install "markitdown[all]"
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification. On Ubuntu 22.04 and Fedora 42 the same command succeeded, with a warning about running pip as root, because those Pythons are not marked.
Three correct fixes
- pipx from the distribution's packages: an isolated install with the command on your PATH (the command above). It installed with Python 3.12.3 on Ubuntu 24.04:
$ pipx install "markitdown[all]"
installing markitdown from spec 'markitdown[all]'...
done! ✨ 🌟 ✨
installed package markitdown 0.1.9, installed using Python 3.12.3 - uv:
uv tool install --python 3.13 "markitdown[all]"worked in all five containers, and uv fetches its own Python (uv notes). - A virtual environment (commands). On Debian and Ubuntu you may need the
python3-venvpackage first; the containers we tested had it installed.
The fix not to use
--break-system-packages and sudo pip mix about fifty MarkItDown dependencies into the system Python. We did not test the damage; use one of the three above.
When the distribution's Python is too old
MarkItDown 0.1.9 needs Python 3.10 or newer and below 3.15. Every distribution we tested ships 3.10 or newer, with Ubuntu 22.04 at the bottom (3.10.12). On an older release, uv fetches its own Python.
System packages for audio and metadata
sudo apt install ffmpeg libimage-exiftool-perlsudo dnf install perl-Image-ExifTool ffmpeg-freeffmpeg
Needed only for MP3, M4A and MP4 input. On every distribution we tested, an MP3 without ffmpeg failed:
$ markitdown test.mp3
raise FileConversionException(attempts=failed_attempts)
markitdown._exceptions.FileConversionException: File conversion failed after 1 attempts:
- AudioConverter threw FileNotFoundError with message: [Errno 2] No such file or directory: 'ffprobe' With ffmpeg installed the MP3 converted on Ubuntu and Debian. On Fedora 42, with ffmpeg-free, the output had no file metadata (audio page).
ExifTool
Needed for image and audio metadata. We tested versions 12.40 to 13.50. On Ubuntu and Debian the JPEG's metadata printed; on Fedora 42 the same command printed nothing after we installed ExifTool 13.50, and we did not find out why. Nothing else is required: no LibreOffice, no Tesseract, no GPU.
Servers and containers
Headless machines are fine: all of this ran in containers with no display. A virtual environment with everything installed was about 420 to 450 MB on disk in our runs.
WSL
We did not test WSL. It runs a Linux distribution, so the matching row above should apply, but that is an expectation, not a result.