I am trying to install poppler
on my Heroku server because I am using pdf2image
as a python package. However, I can't just run brew install poppler
like I did on my Mac.
I have tried to add some heroku buildpacks off the internet but with no luck. Anytime pdf2image runs I get this error.
pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
Is there something I can do on the command line to get poppler installed while keeping heroku/python as my buildpack?
答案 0 :(得分:2)
在保持
heroku/python
作为我的buildpack的同时,我是否可以在命令行上做一些事情来安装poppler?
Heroku lets you run multiple buildpacks。我没有尝试过这个buildpack,但建议您将this buildpack添加到您现有的应用中:
heroku buildpacks:set heroku/python
heroku buildpacks:add --index 1 https://github.com/survantjames/heroku-buildpack-poppler.git
然后重新部署您的应用程序。
答案 1 :(得分:-1)
!pip install python-poppler:它给我带来了这个错误。 尝试:https://elements.heroku.com/buildpacks/k16shikano/heroku-buildpack-poppler 这对我有用。