Can I Install Spark OCR on Windows? #334
-
Are there instructions for installing spark-ocr on Windows? I'm trying to de-id text on .png images. Do I also need a trial license for spark-nlp? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I finally managed to install spark-ocr. The 'invalid version' problem seemed only happened if I created a new conda environment. Again, I only got the 2019.10 version to successfully install as mentioned here. Instead, I just installed spark-ocr on the base conda environment, and that seemed to start downloading correctly. pip install --trusted-host pypi.johnsnowlabs.com spark-ocr==1.9.0.spark24 --user --extra-index-url https://pypi.johnsnowlabs.com/1.9.0-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --upgrade |
Beta Was this translation helpful? Give feedback.
I finally managed to install spark-ocr. The 'invalid version' problem seemed only happened if I created a new conda environment. Again, I only got the 2019.10 version to successfully install as mentioned here. Instead, I just installed spark-ocr on the base conda environment, and that seemed to start downloading correctly.
The issue after this, "Microsoft Visual C++ 14.0 is required" error, was fixed by installing the visual c++ build tools and restarting the computer.
Here's the command line that ended up working:
pip install --trusted-host pypi.johnsnowlabs.com spark-ocr==1.9.0.spark24 --user --extra-index-url https://pypi.johnsnowlabs.com/1.9.0-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --upgrade