Skip to content

Instantly share code, notes, and snippets.

@fiddyschmitt
Created March 18, 2025 07:41
markitdown notes
pip install -e packages/markitdown[all]
pip install pyinstaller
create a bootstrap file:
markitdown-main\packages\markitdown\src\runme.py
content:
import markitdown.__main__
if __name__ == "__main__":
markitdown.__main__.main()
Now compile to exe:
//can also use --onefile
"C:\Users\smith\AppData\Roaming\Python\Python311\Scripts\pyinstaller.exe" --onedir --hidden-import=markitdown --clean --name "markitdown" --collect-submodules=markitdown --collect-all=magika runme.py
Test exe:
markitdown.exe "C:\Temp\test.pdf" -o "C:\Temp\test.md"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment