Mac OS 10.9的Poppler安装

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

您是否知道如何在Mac OS X 10.9上安装Poppler?仅供参考,我现在正在使用Python 3.7版本。我最近将系统从Windows更改为最新的Mac,并且某些在Windows上运行的程序无法在Mac上运行,并且我更改了其中之一的代码。

现在我必须安装poppler才能使用pdf2image,就像我在github上看到的那样:

“如何安装首先,您需要pdftoppmpdftoppm是执行实际操作的软件。它作为更大的软件包poppler的一部分分发。Windows用户必须为Windows安装poppler,然后将bin /文件夹添加到PATH。Mac用户必须为Mac安装poppler。

否则,如果没有安装poppler,我可以看到:

"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pdf2image/pdf2image.py", line 169, in __page_count
raise Exception('Unable to get page count. Is poppler installed and in PATH?')

例外:无法获取页数。 poppler是否已安装并在PATH中?

但是当我尝试这样做时,会出现以下提示:

pip3 install poppler
Collecting poppler
  Could not find a version that satisfies the requirement poppler (from versions: )
No matching distribution found for poppler.

我正在检查已安装模块的版本,并且pdf2image == 1.1.0。

我尝试通过brew进行操作,但是当我安装它时,发现不支持我的Mac版本。有什么解决办法吗?

非常感谢您的提前帮助!

python osx-mavericks poppler
1个回答
0
投票

您可以通过运行此命令使用Brew安装poppler

brew install poppler

如果未安装自制软件,请先安装此

ruby -e“ $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” dev / null 2> / dev / null

OR遵循这些说明

https://brewinstall.org/Install-poppler-on-Mac-with-Brew/

© www.soinside.com 2019 - 2024. All rights reserved.