How to Handle MissingDependencyException for Optional Format Dependencies in MarkItDown
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
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →