Closed pgee70 closed 6 years ago
I don't know why the binary is not installed.
Although it is probably installed here
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ocrmypdf
But I recommend installing with pip install --user
as discussed here since it is better to avoid modifying the Macports Python, in case other dependencies interact with it too:
https://ocrmypdf.readthedocs.io/en/latest/installation.html#installing-with-python-pip
You'll need to the exempi package too: https://www.macports.org/ports.php?by=library&substr=exempi
Thanks, The reason I didn't do as per instructions on your site was the version of pip I had was running on the python 2.7 frame work and I didn't know how to fix that:
pip --version
pip 18.1 from /Library/Python/2.7/site-packages/pip (python 2.7)
Thanks for above that was a nudge in the right direction. this list might help others + thanks for prompt assistance, closing ticket now.
sudo port install qpdf tesseract tesseract-eng jbig2enc pngquant unpaper ghostscript exempi wget
sudo port install python37
sudo port select --set python3 python37
sudo port install py37-pip
sudo port select --set pip pip37
sudo /opt/local/bin/pip-3.7 install chardet
sudo /opt/local/bin/pip-3.7 install ocrmypdf
get a new version of a data file for tesseract:
wget https://github.com/tesseract-ocr/tessdata/raw/3.04.00/osd.traineddata
sudo mv osd.traineddata /opt/local/share/tessdata/
run with:
TESSDATA_PREFIX=/opt/local/share/tessdata
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/ocrmypdf --version
7.3.0
Using OSX 10.14.1, I don't have brew installed and use ports(v2.5.4). I did try using brew and ports at one time which opened up a world of pain. So i thought that using the python pip program was the way to go. it seems to have worked, but i don't know how to run the python package..
i read something and tried:
frankly i am lost with python . assistance appreciated.