Python 使用pdf2image将PDF转换为图像不起作用

Python 使用pdf2image将PDF转换为图像不起作用,python,pdf,Python,Pdf,我想将PDF文件转换为图像文件(.jpg或.png…)。我已找到此解决方案,但我总是会遇到一个错误: from pdf2image import convert_from_path pages = convert_from_path('sample.pdf', 500) # I have tried with full path, and with different num of pages 我得到的错误是: pdf2image.exceptions.PDFInfoNotInstalle

我想将PDF文件转换为图像文件(.jpg或.png…)。我已找到此解决方案,但我总是会遇到一个错误:

from pdf2image import convert_from_path 

pages = convert_from_path('sample.pdf', 500) # I have tried with full path, and with different num of pages
我得到的错误是:

pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
我怎样才能解决这个问题


如果有其他方法将pdf转换为.jpg,请告诉我。

这是否回答了您的问题?我甚至不能安装波普勒!你知道吗,还有其他方法吗?请你相应地更新你的问题好吗?我们中没有人有水晶球@ChristianBaumann请检查: