Heroku buildpack (docs) to install Python applications using conda and pip.
Configure this buildpack on your Heroku application like this:
heroku buildpacks:set https://github.com/faph/conda-pip-buildpack.git#v1.3.0
Then, in the root of your project, create an environment.yml
file like this:
name: env # anything goes
channels:
- custom-channel # if required
- ...
dependencies:
- python=3.5.*
- other-conda-package
- ...
- pip:
- pip-package # if required
- ...
See also the conda env spec.
Alternatively, list conda packages in a conda-requirements.txt
file, pip
packages in a requirements.txt
file (optional) and non-default conda channels
in a conda-channels.txt
file.
- The conda root environment is created at
/app/.heroku/miniconda
. - The application’s environment is created and activated at
/app/.heroku/miniconda/envs/app_env
. - The application itself is installed in
/app
. - Django static files are collected (symlinked) if a
manage.py
file exists in the project’s root. If the constantSTATIC_ROOT
is not defined, this will silently fail.
Based on a conda buildpack by Kenneth Reitz.
Licensed under the MIT licence.