Install Tesseract: what each way gives
1,933 of 1,955
words read, every install I ran
I ran 8 Tesseract installs on a Mac and Linux, and read the same 10 book pages with each.
Your command, by system
Mac, with Homebrew:
brew install tesseract
Ubuntu, Debian:
sudo apt-get update
sudo apt-get install -y tesseract-ocr
Fedora:
sudo dnf install -y tesseract
Any system, with conda-forge:
micromamba install -y -n base -c conda-forge tesseract
| System | Tesseract | Comes with |
|---|---|---|
| Mac, Homebrew | 5.5.4 | eng, osd |
| Fedora 45 | 5.5.4 | eng |
| conda-forge | 5.5.4 | 123 languages |
| Windows installer | 5.5.3 | eng, osd, downloaded |
| Ubuntu 26.04, Debian 13 | 5.5.0 | eng, osd |
| Ubuntu 24.04 | 5.3.4 | eng, osd |
| Debian 12 | 5.3.0 | eng, osd |
| Ubuntu 22.04 | 4.1.1 | eng, osd |
osd finds the page's turn and script. Check your install with
tesseract --version.
pip install pytesseract is not Tesseract
python3 -m venv venv
venv/bin/pip install pytesseract
venv/bin/python -c "import pytesseract; print(pytesseract.get_tesseract_version())"
pip installed pytesseract, Pillow and packaging. It installed no OCR program.
With Homebrew's Tesseract on the PATH, the last line printed 5.5.4. Without it, pytesseract raised TesseractNotFoundError. The fixes are on tesseract is not installed.
pytesseract then wrote the same text as the tesseract command on 10 of 10 pages.
Add a language
-
Ubuntu, Debian:
sudo apt-get install -y tesseract-ocr-deuadded German on all 5. -
Fedora:
sudo dnf install -y tesseract-langpack-deudid the same. -
Mac:
brew install tesseract-langadds 160 language files, every language at once. I did not run it. -
Windows: tick languages in the installer, and each
one downloads. Scoop unpacks the file without running it, so add
scoop install tesseract-languages.
Then pass -l deu, or
-l eng+deu
for both.
Windows: pick the right winget name
UB Mannheim's page lists the installer, and the file sits on Tesseract's own 5.5.3 release. I downloaded and checked it, but I have no Windows machine to run it.
| Command | Gives | Same file |
|---|---|---|
winget install tesseract-ocr.tesseract |
5.5.3 | Yes |
scoop install tesseract |
5.5.3 | Yes |
choco install tesseract |
5.5.3 | Not checked |
winget install UB-Mannheim.TesseractOCR |
5.4.0 | No, a 2024 build |
- No language files inside: the installer downloads English from GitHub as it runs, so it needs the internet. Scoop skips that step.
- Direct download: the 64-bit installer, 26.6 MB.
SHA-256 of the installer
bee9e3434bd94fd65387d9be28cd467a41f61b1275383b55b0f59a1331270ae4
Every version found as many words
| Tesseract | Words found | False words |
|---|---|---|
| 4.1.1, Ubuntu 22.04 | 1,933 | 83 |
| 5.3.0 to 5.5.0, Debian and Ubuntu | 1,933 | 85 |
| 5.5.4, Homebrew, Fedora, conda | 1,933 | 83 |
All 8 installs came with the same 4.1 MB English model file. The text still moved a little, so pin one version if you compare OCR output.
Or skip the install
Our Apify Actor turns scanned PDFs and images into Markdown and text. Tesseract 5 and 23 languages are already inside. Its code found 1,945 of 1,955 words on these pages.
The free plan takes 20 pages a run, 50 a month. An OCR page costs $0.006.
How I tested it
- Homebrew's 5.5.4 was already on this Apple Silicon Mac, so I did not time a fresh Mac install. I read what it installed.
- Linux and conda: one arm64 container each, the commands above as root, then the 10 pages. Each install took 4 to 14 seconds here.
- The pages: 10 real scans of 2 public domain books with proofread text. Tesseract ran with English, default settings, one thread.
- Windows: I listed the installer's files with 7-Zip and read its install script at the 5.5.3 tag. The package lists are winget, Scoop and Chocolatey.
- Our Actor's code at commit 528fe416 (build 0.1.102), run on this Mac. No Apify run.
What I did not test
Windows itself, Intel Macs and PCs, MacPorts, Arch, building from source, the larger tessdata_best models, and accuracy in other languages. Alpine is on Tesseract in Docker.
Questions people ask
Where do I download Tesseract for Windows?
From the 5.5.3 release on Tesseract's GitHub page: tesseract-ocr-w64-setup-5.5.3.20260724.exe, 26.6 MB. The UB Mannheim page links the same file. winget install tesseract-ocr.tesseract points to it too.
Does pip install pytesseract install Tesseract?
No. It installed pytesseract, Pillow and packaging, and no OCR program. Install Tesseract itself with brew, apt, dnf, conda or the Windows installer.
Which Tesseract version should I install?
In my test it did not matter: 4.1.1 to 5.5.4 all found 1,933 of 1,955 words. Take the one your system gives, and pin it if you compare OCR text.