debian使用pdf2image包 将pdf转化成图片 Poppler安装出问题

原先用debian9.8 安上了,后来重装了一下debian9.11就安不上了???????????
debian使用pdf2image包 将pdf转化成图片 Poppler安装出问题_第1张图片
咱也不知道咋回事,就是报这个错,

Traceback (most recent call last):
  File "/home/zh/app/anaconda/lib/python3.7/site-packages/pdf2image/pdf2image.py", line 350, in _page_count
    proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE)
  File "/home/zh/app/anaconda/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/home/zh/app/anaconda/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'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/zh/local/flowChart/codes/try.py", line 1384, in 
    images = convert_from_path(in_File)
  File "/home/zh/app/anaconda/lib/python3.7/site-packages/pdf2image/pdf2image.py", line 80, in convert_from_path
    page_count = _page_count(pdf_path, userpw, poppler_path=poppler_path)
  File "/home/zh/app/anaconda/lib/python3.7/site-packages/pdf2image/pdf2image.py", line 355, in _page_count
    "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?

从网上搜Poppler 安装 Poppler debian Poppler ubuntu 都找不住原因,

sudo apt-get install python-poppler 

像这种也安了不少,
下载了包之后 cmake make 的也有,就是不行。。。。。。。。。。WTF?
后来我想原先是从pdf转图片入手的,也许这个是问题,换个关键词嗖嗖,
直到 我搜 pdf转图片 pdf2image 这才从pdf2image的官网上的某不起眼的一行找到了解决办法

debian使用pdf2image包 将pdf转化成图片 Poppler安装出问题_第2张图片
最后一行的: conda install -c conda-forge poppler 才是终级解决办法。。。。。。至此,nice

你可能感兴趣的:(报错,debian,python)