# How to Handle MissingDependencyException for Optional Format Dependencies in MarkItDown

> Resolve MissingDependencyException in MarkItDown by catching the error and installing optional format dependencies with pip install markitdown[feature]. Learn how to handle missing excel pdf or pptx support efficiently.

- Repository: [Microsoft/markitdown](https://github.com/microsoft/markitdown)
- Tags: how-to-guide
- Published: 2026-04-11

---

**Catch `MissingDependencyException` when calling `MarkItDown.convert_path()` or `convert_bytes()`, then install the missing optional dependency using `pip install markitdown[feature]` where `[feature]` corresponds to the file format (e.g., `xlsx`, `pdf`, `pptx`).**

MarkItDown is a Python library from Microsoft that converts various document formats to Markdown. It implements an optional dependency architecture where format-specific converters—such as those for Excel spreadsheets, PDF documents, and PowerPoint presentations—require additional packages that are not installed