Hi there, thank you for your contribution to Conda! I can't think of another package though where I'd want automatic pinning.
#CONDA PYTHON VERSION PINNED INSTALL#
Python is a good counter-example - if I install a particular python version I probably really do want it pinned at least to the minor version. In each case I don't want the install operation to be conflated with the pinning operation. To me installing is separate from pinning whether that's installing a particular version / pinning a package to a particular version or installing from a particular channel / pinning a package to a particular channel. Would it still be true for you if you replaced the word "channel" with "version"?Ībsolutely! When I choose to install a particular version of a package I don't want that to automatically pin the package to that version. To install from a specific channel I'd have to also add -override-channels Won't necessarily install from conda-forge - the above will only add conda-forge as a channel to search for the latest version and the latest version from whatever channel will be installed. Does such a method exist? Also, xref #2978 - is there any documentation of this?Ĭonda install -c conda-forge scikit-learn I suppose that it's not a big deal if there's an easy way to unpin the channel after installing from a particular channel. conda install conda-forge::scikit-learn -pin-channel rather than implicit. I think channel pinning should be opt-in - e.g. I don't think the latter should happen (by default) just because you want to do the former. It seems to me to be conflating two separate concerns - installing from a particular channel and pinning a package to a particular channel. This isn't what I would want to happen by default when I choose to install from a particular channel. Just read the blog post and a lot of the improvements sound great! One thing I'm a little concerned about is the behaviour described below:įor example, executing conda install conda-forge::scikit-learn will confine all future changes to the scikit-learn package in the environment to the conda-forge channel, until the spec is changed again