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