Skip to content

How to add requirement from git? #1446

Answered by parano
pkolebski asked this question in Q&A
Discussion options

You must be logged in to vote

@pkolebski here are related documentation for how to use a pip package from git: https://docs.bentoml.org/en/latest/concepts.html#pypi-packages

Note that this is not supported in the current version 0.11.0, but will be available in the next release. In the next release, you will be able to use git repo with the standard PyPI package descriptor format:

@bentoml.env(
  pip_packages=[
    'scikit-learn',
    'pandas @https://github.com/pypa/pip/archive/1.3.1.zip',
  ]
)

Or use your own requirement.txt file, e.g.: @bentoml.env(requirements_txt_file='./requirements.txt')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pkolebski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants