docs: Add Notes for Intel macOS

Signed-off-by: Juil Park <park@juil.dev>
This commit is contained in:
Juil Park 2025-04-10 16:59:52 +09:00 committed by GitHub
parent 355d8dc7a6
commit 6ebe1356f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,25 @@ Works on macOS, Linux, and Windows, with support for both x86_64 and arm64 archi
pip install ocrmac pip install ocrmac
``` ```
??? "Installation on macOS Intel (x86_64)"
When installing Docling on macOS with Intel processors, you might encounter errors with PyTorch compatibility.
This happens because newer PyTorch versions (2.6.0+) no longer provide wheels for Intel-based Macs.
If you're using an Intel Mac, install Docling with compatible PyTorch
**Note:** PyTorch 2.2.2 requires Python 3.12 or lower. Make sure you're not using Python 3.13+.
```bash
# For uv users
uv add torch==2.2.2 torchvision==0.17.2 docling
# For pip users
pip install "docling[mac_intel]"
# For Poetry users
poetry add docling
```
## Development setup ## Development setup
To develop Docling features, bugfixes etc., install as follows from your local clone's root dir: To develop Docling features, bugfixes etc., install as follows from your local clone's root dir: