我试图在我的Heroku服务器上安装poppler,因为我将pdf2image作为python软件包使用.但是,我不能像在Mac上那样仅运行brew install poppler.
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.
我试图从互联网上添加一些heroku buildpack,但是没有运气.每当pdf2image运行时,我都会收到此错误.
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?在保留heroku/python作为我的buildpack的同时,我可以在命令行上执行一些操作来安装poppler吗?
Is there something I can do on the command line to get poppler installed while keeping heroku/python as my buildpack?
推荐答案
在保持heroku/python作为我的buildpack的同时,是否可以在命令行上执行一些操作来安装poppler?
Is there something I can do on the command line to get poppler installed while keeping heroku/python as my buildpack?
Heroku允许您运行多个buildpack .我没有尝试过这个buildpack,但是我建议添加这个buildpack 到您现有的应用程序:
Heroku lets you run multiple buildpacks. I haven't tried this buildpack, but I'd recommend adding this buildpack to your existing app:
heroku buildpacks:set heroku/python heroku buildpacks:add --index 1 github/survantjames/heroku-buildpack-poppler.git然后重新部署您的应用程序.
Then redeploy your application.
更多推荐
将poppler安装到Heroku Server django上
发布评论