title: File tesseract.exe does not exist
body: <p>I have installed the <code>pytesseract</code> library using </p>
  
  <pre><code>pip install pytesseract
  </code></pre>
  
  <p>When I tried to use the <code>image_to_text</code> method, it gave me a</p>
  
  <blockquote>
    <p>FileNotFoundError: [WinError 2] The system can not find the file specified</p>
  </blockquote>
  
  <p>I googled it and found that I should change something in the pytesseract.py file and the line</p>
  
  <pre><code>tesseract_cmd = 'tesseract'
  </code></pre>
  
  <p>should become</p>
  
  <pre><code>tesseract_cmd = path_to_folder_that_contains_tesseractEXE + 'tesseract'  
  </code></pre>
  
  <p>I searched and haven't found any <code>tesseract.exe</code> files in my Python folder, I then reinstalled the library, but the file still wasn't there. Finnally, I replaced the line by:</p>
  
  <pre><code>tesseract_cmd = path_to_folder_that_contains_pytesseractEXE + 'pytesseract'
  </code></pre>
  
  <p>and my program threw:</p>
  
  <blockquote>
    <p>pytesseract.pytesseract.TesseractError: (2, 'Usage: python pytesseract.py [-l lang] input_file')</p>
  </blockquote>
  
  <p>What can I do make my programm work?</p>
  
  <p>P.S Here is my programm code :</p>
  
  <pre><code>from pytesseract import image_to_string
  from PIL import Image, ImageEnhance, ImageFilter
  
  im = Image.open(r'C:\Users\Филипп\Desktop\ImageToText_Python\NoName.png') 
  print(im)
  
  txt = image_to_string(im)
  print(txt)
  </code></pre>
  
  <p>Full Traceback of first attempt : </p>
  
  <pre><code>File "C:/Users/user/Desktop/ImageToText.py", line 10, in &lt;module&gt;
  text = pytesseract.image_to_string(im)
  File "C:\Python\lib\site-packages\pytesseract\pytesseract.py", line 122, in 
  image_to_string config=config)
  File "C:\Python\lib\site-packages\pytesseract\pytesseract.py", line 46, in 
  run_tesseract proc = subprocess.Popen(command, stderr=subprocess.PIPE)
  File "C:\Python\lib\subprocess.py", line 947, in __init__ restore_signals, start_new_session)
  File "C:\Python\lib\subprocess.py", line 1224, in _execute_child startupinfo)
  FileNotFoundError: [WinError 2]The system can not find the file specified
  </code></pre>
  
  <p>Full Traceback of second attempt</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:\Users\user\Desktop\ImageToText.py", line 6, in &lt;module&gt; txt = image_to_string(im)
  File "C:\Python\lib\site-packages\pytesseract\pytesseract.py", line 125, in image_to_string
  raise TesseractError(status, errors)
  pytesseract.pytesseract.TesseractError: (2, 'Usage: python pytesseract.py [-l lang] input_file')
  </code></pre>