你如何在谷歌科拉布上安装波普勒



我正在使用python包pdf2img,但是我收到一个错误,要求我检查我是否安装了poppler,所以我在colab的代码框中运行了"pip install python-poppler-qt5",但随后出现以下错误:

Collecting python-poppler-qt5 Using cached https://files.pythonhosted.org/packages/6a/7d/65a14ece5dd6a1564b576c1ca30b0f5639be64cc55b62b4d2b497159ed43/python-poppler-qt5-0.75.0.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

有人可以给我一个解决方案吗?

首先使用以下命令运行单元格:

!apt-get install poppler-utils 

下面是一个完整的示例笔记本,用于安装 deps,下载示例 PDF,然后使用pdf2image将其转换为图像进行显示。

https://colab.research.google.com/drive/10doc9xwhFDpDGNferehBzkQ6M0Un-tYq

最新更新