Skip to content

Installing local packages during cog build #1945

Description

@daniele-sartiano

Hello,

I am trying to install a local package during the cog build process. Specifically, I would like to install a package from a local file like this:

pip install mylibpackage.zip

I tried adding it to requirements.txt and also specifying it in the run command inside my cog.yaml file, like so:

run:
  - pip install mylibpackage.zip

But no luck so far. 😕

Is there a proper way to install local packages during the cog build? Maybe I'm missing something or it’s just not supported?

Any help or direction would be greatly appreciated!

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgoPull requests that update Go code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions