-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Using pip-sync in Google Colab (Jupyter Notebook) #2157
Comments
Packages that meet the ones specified in the requirements file are left untouched.
Can you provide reproduction steps for an example scenario?
|
Hi, I compiled a list of packages (deemed untouchable for colab env) for pip-sync to not touch:
I then passed this list (newline separated) to piptools, also please note that both requirements and dev_requirements already compiled successfully.
I then get:
|
Well, the depresolver still needs to validate the deps somehow to make sure that newly added packages don't violate the restrictions in the currently installed ones too. Perhaps, doing a Alternatively, you may want to consider archiving a wheelhouse and sending that into your env, I suppose. |
Although, if those custom packages are available via an additional index, you should stick that into the command/config through custom pip args. |
I believe google-colab is only available from https://anaconda.org/conda-forge/google-colab, but have no clue how to make that available via an additional index, do you by any chance? |
If you're getting things from an entirely different ecosystem, regular dependency resolvers won't work. Also, it's usually a bad idea to try to make different dependency management tools control the same virtualenv — they don't know of each other and the metadata of the other side. You might need to be creative here. FWIW, you don't have to use |
With pip-sync packages will be uninstalled and re-installed, some of the packages are not available pypi, e.g., Google specific packages
For example, I would like for a selected group of packages to be untouched, left as is. How can I achieve that using pip-sync?
Environment Versions
Steps to replicate
Expected result
...
Actual result
...
The text was updated successfully, but these errors were encountered: