Skip to content

Commit 53002f6

Browse files
authored
Merge pull request #1485 from alexpdp7/main
Correct the installation instructions for Windows
2 parents e4274a9 + acea952 commit 53002f6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/installation.rst

+23
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ Installing on Windows
394394
Native Windows
395395
--------------
396396

397+
..
398+
If you have a Windows that is not the Home edition, you can use Windows Sandbox to test on a blank Windows instance.
399+
https://learn.microsoft.com/en-us/windows/security/application-security/application-isolation/windows-sandbox/
400+
397401
.. note::
398402

399403
Administrator privileges will be required for some of these steps.
@@ -430,6 +434,25 @@ Administrator.):
430434

431435
* ``python3 -m pip install ocrmypdf``
432436

437+
..
438+
The Windows Python versions do not place any python or python3 executable in the path.
439+
They add the py launcher to the path:
440+
https://docs.python.org/3/using/windows.html#python-launcher-for-windows
441+
442+
If you installed Python using WinGet, then use the following command instead:
443+
444+
* ``py -m pip install ocrmypdf``
445+
446+
and use:
447+
448+
* ``py -m ocrmypdf``
449+
450+
To start OCRmyPDF.
451+
452+
If you intend to use more Python software on your Windows machine, consider the use of
453+
`pipx <https://pipx.pypa.io/stable/>`_ or a similar tool to create isolated Python
454+
environments for each Python software that you want to use.
455+
433456
OCRmyPDF will check the Windows Registry and standard locations in your Program Files
434457
for third party software it needs (specifically, Tesseract and Ghostscript). To
435458
override the versions OCRmyPDF selects, you can modify the ``PATH`` environment

0 commit comments

Comments
 (0)