Install

Install MarkItDown on Linux

Updated 2026-11-16·Upstream source ↗
Markdown view

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:

Command
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

Five fresh containers, run as root, markitdown 0.1.9 with every extra
DistributionPythonPython marked externally managedPlain pippipx install sizevenv sizeuv tool, Python 3.13ExifToolffmpeg
ubuntu-22.043.10.12noinstalled447Mok12.404.4.2-0ubuntu0.22.04.1
ubuntu-24.043.12.3yesrefused (PEP 668)410M425Mok12.766.1.1-3ubuntu5
debian-123.11.2yesrefused (PEP 668)420M446Mok12.575.1.9-0+deb12u1
debian-133.13.5yesrefused (PEP 668)410M422Mok13.257.1.5-0+deb13u1
fedora-423.13.13noinstalled410M421Mok13.507.1.4
Five fresh containers, run as root, markitdown 0.1.9 with every extra Source: Test T02 · 2026-11-16 · GitHub runner containers · linux-distros.csv · Download CSV

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:

markitdown 0.1.9 · Ubuntu 24.04 · bash (container on a CI runner) · 2026-11-16
$ 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.

raw log

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

  1. 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:
markitdown 0.1.9 · Ubuntu 24.04 · bash (container on a CI runner) · 2026-11-16
$ pipx install "markitdown[all]"
installing markitdown from spec 'markitdown[all]'...
done! ✨ 🌟 ✨
  installed package markitdown 0.1.9, installed using Python 3.12.3

raw log

  1. uv: uv tool install --python 3.13 "markitdown[all]" worked in all five containers, and uv fetches its own Python (uv notes).
  2. A virtual environment (commands). On Debian and Ubuntu you may need the python3-venv package 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

Command
sudo apt install ffmpeg libimage-exiftool-perl

ffmpeg

Needed only for MP3, M4A and MP4 input. On every distribution we tested, an MP3 without ffmpeg failed:

markitdown 0.1.9 · Ubuntu 24.04 · bash (container on a CI runner) · 2026-11-16
$ 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'

raw log

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.