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

Installing local packages during cog build #1945

Open
daniele-sartiano opened this issue Sep 12, 2024 · 1 comment
Open

Installing local packages during cog build #1945

daniele-sartiano opened this issue Sep 12, 2024 · 1 comment

Comments

@daniele-sartiano
Copy link

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!

@8W9aG
Copy link
Contributor

8W9aG commented Sep 12, 2024

What happens if you use the absolute path of the package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants