无法在 MacOS 中安装 Poppler

问题描述 投票:0回答:0

我运行代码:img = np.asarray(pdf2image.convert_from_path(pdf_file)[0])

并得到以下错误: PDFInfoNotInstalledError:无法获取页数。 poppler 是否已安装并在 PATH 中?

我使用 MacOs Ventura 13.2.1、Spyder、Python 3.10 非常感谢任何解决问题的建议。

嗨,我正在尝试通过 python 将“poppler”安装到

  • brew 安装 poppler
  • conda 安装 poppler poppler-qt

但以上都不起作用。

python macos homebrew macports poppler
© www.soinside.com 2019 - 2024. All rights reserved.