Installing pdftotext library on heroku

前端 未结 1 803
执笔经年
执笔经年 2020-12-21 17:20

pdftotext library is a requirement in requirements.txt. While trying to push to heroku, I get the following error:

remote:          Running setup.py install          


        
相关标签:
1条回答
  • 2020-12-21 18:04

    From How do I install additional software packages that my application requires?:

    We don't offer official support for installing extra packages but there are a couple of unsupported options.

    One is the experimental heroku-apt-buildpack. You can use this by including any APT package in an Aptfile in your application. The buildpack will then install these packages on the dyno when you deploy your application.

    So, to do this, first add the build pack:

    heroku buildpacks:add --index 1 heroku-community/apt
    

    Then, create an Aptfile in your source directory with the following contents:

    libpoppler-cpp-dev
    

    And deploy as you normally would. Let me know if that helps!

    0 讨论(0)
提交回复
热议问题