title: Poppler is installed: why do I get an error using pdf2image on python3?
body: <p>I am using python <code>3.7.4</code> on a macOS 10.14.6 and I am trying to use <code>pdf2image</code> to convert a pdf file into an image. So I have installed <code>poppler</code> with <code>Homebrew</code>. I get an error message when I try to convert the PDF.</p>
  
  <pre><code>Traceback (most recent call last):   File "/usr/local/lib/python3.7/site-packages/pdf2image/pdf2image.py", line 240, in _page_count
      proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE)   File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
      restore_signals, start_new_session)   File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'pdfinfo': 'pdfinfo'
  </code></pre>
  
  <p>I use the following code:</p>
  
  <pre><code>from pdf2image import convert_from_path, convert_from_bytes
  from pdf2image.exceptions import (
      PDFInfoNotInstalledError,
      PDFPageCountError,
      PDFSyntaxError
  )
  
  images = convert_from_path('test.pdf')
  </code></pre>
  
  <p>During handling of the above exception, another exception occurred:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/michelebutturini/Desktop/Segmentation.py", line 16, in &lt;module&gt;
      images = convert_from_path('test.pdf')
    File "/usr/local/lib/python3.7/site-packages/pdf2image/pdf2image.py", line 54, in convert_from_path
      page_count = _page_count(pdf_path, userpw, poppler_path=poppler_path)
    File "/usr/local/lib/python3.7/site-packages/pdf2image/pdf2image.py", line 244, in _page_count
      raise PDFInfoNotInstalledError('Unable to get page count. Is poppler installed and in PATH?')
  pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
  </code></pre>