down votefavorite
<http://stackoverflow.com/questions/39664440/cant-user-tesseract-so-how-to-install-tesseract-on-virtualenv#>
I created a virtualenv via command venv. Then I installed tesseract via
command brew install tesseract. But I can use it only on actual env, when I
use it on virtualenv, an error *No such file or directory: 'tesseract'* is
thrown:
Traceback (most recent call last):
File "/Users/abc/PycharmProjects/spider/demo2.py", line 5, in <module>
vcode = pytesseract.image_to_string(image)
File
"/Users/abc/env1/lib/python3.5/site-packages/pytesseract/pytesseract.py", line
161, in image_to_string
config=config)
File
"/Users/abc/env1/lib/python3.5/site-packages/pytesseract/pytesseract.py", line
94, in run_tesseract
stderr=subprocess.PIPE)
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py",
line 947, in __init__
restore_signals, start_new_session)
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py",
line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)FileNotFoundError: [Errno 2]
No such file or directory: 'tesseract'
so i can't understand why i can't use tesseract on v.env
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/3e3e360a-df68-4753-9d6f-bd2a51117880%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.