Installing from an explicit file into an existing environment should prompt the user to merge or replace the environment #14867
Labels
source::contributor
created by a frequent contributor
type::feature
request for a new feature or capability
Checklist
What is the idea?
When installing from an explicit (.txt) file into an existing environment, conda should ask the user if they want to replace the existing environment with the packages from the file or merge the existing environment with those in the file.
Why is this needed?
Installing from an explicit environment into an existing environment can result in an inconsistent environment.
What should happen?
When installing from an explicit (.txt) file into an existing environment, conda will replace any existing packages of the same name as the explicit packages without performing a solve. This can results in an inconsistent environment.
Rather conda should prompt the user when installing from an explicit file into an existing environment to determine if the intent is to replace the environment (e.g. delete and the create from the explicit file) or merge the existing environment (the current behavior). In the majority of cases the user likely wants the replace option.
Additional Context
No response
The text was updated successfully, but these errors were encountered: