Skip to content

Installing Dependencies #52

Closed
Closed

Description

@cgarciae

Hi! I am using Deep Mind's Sonnet library to make my architecture code reusable. Sonnet is not included in the py2 container and I have not found a way to pass additional requirements to SageMaker. Could you implement a way to pass a requirements.txt file to the Tensorflow constructor so SageMaker installs the requirements in the Docker container before training? Floydhub lets you define the floyd_requirements.txt file that does exactly this and works very well.

Activity

  1. owen-t commented on Jan 22, 2018

    @owen-t
    Contributor

    Hi,

    Thanks for the feature suggestion! This is something I've previously thought would be really cool and it would be great to get this into our SDK. We'll post here when the feature is released.

  2. cgarciae commented on Jan 22, 2018

    @cgarciae
    Author

    Excellent! Looking forward to it.

    For anyone interested, I've resorted to installing dependencies from python, just add these lines before all other imports:

    from subprocess import call
    call("pip install dm-sonnet".split(" "))
  3. added
    status: pending release
    and removed on Mar 2, 2018
  4. removed
    status: pending release
    on Mar 7, 2018
  5. nadiaya commented on Mar 7, 2018

    @nadiaya
    Contributor

    This feature has been released.

  6. Jacob-Stevens-Haas commented on Sep 22, 2018

    @Jacob-Stevens-Haas

    Hey, not sure if I'm doing it wrong, or if "feature released" is only python2 (which was the OP's version).

    I open terminal pip install geopy. Asked some AWS folks at an event and they said to install from within notebook, because the instance of Python is specific to the notebook. That doesn't work in normal notebooks, but, hey look, it still doesn't work. @cgarciae's trick does. Is that supposed to be how we install them?

  7. added a commit that references this issue on Nov 15, 2018
  8. dshahrokhian commented on Jun 13, 2019

    @dshahrokhian

    Is this feature only working with tensorflow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions