Deploying to Heroku with Anaconda

前端 未结 3 737
盖世英雄少女心
盖世英雄少女心 2020-12-29 05:27

I have a Django app I want to deploy to Heroku. I tried to follow the instructions here: https://devcenter.heroku.com/articles/getting-started-with-django which tells you to

3条回答
  •  感动是毒
    2020-12-29 06:01

    I had this problem too. I wanted to deploy a django app which use numpy, sckit-learn and some other conda packages. I used the conda-buildpack but the installed packages weren't accessible from inside django. So I created a fork which extended the PYTHONPATH and removed the part where dependencies installed withpip install -r requirements.txt because this part clashed with memcached on heroku. Now I have a multiple buildpack setup with the default heroku python buildpack and my custom condas buildpack fork The requirements.txt is processed by the python buildpack and the conda-requirements.txt by the conda buildpack. Works like a charm for me.

提交回复
热议问题