-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
pip-installed packages not in "conda list --explicit" #8372
Comments
I agree. This situation has burned me in the past and it would be very useful to include mention of the pip-installed (or other non conda-installed) packages as comments. Such as:
|
Options with conda list
If I understand with "--explicit" it lists only installed by conda, not including pip (not clear). However, if you use only --no-pip option, it lists everything, exactly identical to conda list, that it is equal (in packages, not how they are described) to --export. So it seems that they are not working properly. Some outputs in the files. Maybe another issue for conda --no-pip as it is not working. conda-list.txt |
I just want to emphasize what @prjemian showed in his suggestion. He shows the pip packages as lines beginning with |
This is confusing. So to create an EXACT clone of a working env on another host, - with ALL installed pkgs - Is this the recommended way ?
|
Hey! Is there any update regarding this? The issue is important since |
I know it is not a definitely solution,
then I install the packages using pip, and then if I If I don't install python in that particular when I |
This did not work for me though :( |
Any update on this? |
This issue needs a very high priority: reproducible computing requires the ability to reproduce the computing environment. I thought that the point of Conda was to promote reproducibility, but without this basic functionality, or a clearly documented workaround, conda fails in this objective. Unless things have changed, the process of getting a package currently only available with pip converted and built as a conda package is sufficiently difficult as to be not a reasonable option for regular users workflows. Until this is address, what is the official recommendation from the conda team? Or is my notion that conda aims to facilitate reproducible computing in error? Perhaps |
Does anyone know if an work around exists now? i.e. is there a way to reliably clone existing environment including pip installed packages? |
|
I usually save the previous environment with:
and then I create my new environment using:
is there a better/more complete way to do this? |
Wouldn't |
Yes, but typically pip should see the conda installed packages and not overwrite them. This is not guaranteed though. |
How safe is that option? |
I broked a couple of virtual envs mixing conda and pip. In general my approach is trying to install everything with conda (which manages ok the dependencies) and at the end if there is something that can't be installed with conda I install it with pip. |
I do the same, my only concern is re-creating the environment on a different machine. If my friend has a mac, I want to share with him only the top lvl packages that I installed in that env. With the How do you work around this? |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
Dear bot. This issue has not yet been resolved (at least with version 23.5.0): it might be more of a documentation issue, but someone needs to weigh in and fix this one way or the other. It is not stale, just old. |
This is a real pain. It is a basic and common functionnality to recreate an env. What is the proposed approach please? |
Chiming in; I am currently in the midst of this exact issue. I have a local package with |
Is there a way to do this from script? might be the easiest workaround :P EDIT:
This also copies a lot of dependancies in that arent strictly needed. These can then be removed/cleaned. |
Current Behavior
conda list --explicit
does not include anypip
-installed packages, whileconda list
does. It's unclear to me if that is on purpose or not, but if it is then that needs mentioning in https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#building-identical-conda-environments because users will be ending up with incomplete environments if they have any pip-installed packages.Steps to Reproduce
Expected Behavior
I understand that
conda
cannot easily give a hard guarantee about the exact binaries or sdists installed bypip
, however including the pip-installed packages in the output ofconda list --explicit
(just copyconda list
behavior) still seems way more useful than leaving them out.Environment Information
`conda config --show-sources`
The text was updated successfully, but these errors were encountered: