将poppler安装到Heroku Server django上

编程入门 行业动态 更新时间:2024-10-23 07:40:29
本文介绍了将poppler安装到Heroku Server django上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图在我的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上

本文发布于:2023-07-05 09:00:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1035492.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Heroku   poppler   django   Server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!