2024-09-17 07:53:43 -07:00
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
2025-01-27 18:30:41 +00:00
|
|
|
**olmocr** supports Python >= 3.8.
|
2024-09-17 07:53:43 -07:00
|
|
|
|
|
|
|
## Installing with `pip`
|
|
|
|
|
2025-01-27 18:30:41 +00:00
|
|
|
**olmocr** is available [on PyPI](https://pypi.org/project/olmocr/). Just run
|
2024-09-17 07:53:43 -07:00
|
|
|
|
|
|
|
```bash
|
2025-01-27 18:30:41 +00:00
|
|
|
pip install olmocr
|
2024-09-17 07:53:43 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
## Installing from source
|
|
|
|
|
2025-01-27 18:30:41 +00:00
|
|
|
To install **olmocr** from source, first clone [the repository](https://github.com/allenai/olmocr):
|
2024-09-17 07:53:43 -07:00
|
|
|
|
|
|
|
```bash
|
2025-01-27 18:30:41 +00:00
|
|
|
git clone https://github.com/allenai/olmocr.git
|
|
|
|
cd olmocr
|
2024-09-17 07:53:43 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
Then run
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip install -e .
|
|
|
|
```
|