Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cheatsheet] Pip requirements examples #47

Closed
aminsaied opened this issue Mar 15, 2021 · 0 comments
Closed

[Cheatsheet] Pip requirements examples #47

aminsaied opened this issue Mar 15, 2021 · 0 comments
Labels
cheatsheet wontfix This will not be worked on

Comments

@aminsaied
Copy link
Collaborator

aminsaied commented Mar 15, 2021

Provide examples on what is possible for pip installation in azureml environments. (ado work item)

More details:
This ask came from Deepspeed team as they develop their Deepspeed curated environment.

How can we include "non-standard" pip commands in environments? For example:

apex install builds a bunch of kernels (cuda/cpp) and needs to be installed like this:
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

which is easy to define in a traditional dockerfile but doing it in the CE setup is a bit tricky

The Conda file's pip section is effectively a pip requirements.txt file and supports most pip options. See doc at:
https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format

That includes global-option, for example, but it is not a complete set of pip flags.

If there's one we need here that's not covered there, the only path today is to add it directly into the Dockerfile.

Medium-term, we're working on changes that will store our environments as a Dockerfile + context, which will make advanced use cases like this more straightforward.

@aminsaied aminsaied added the wontfix This will not be worked on label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cheatsheet wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant