Best practise for managing Conda environments?

Liste des GroupesRevenir à cl python 
Sujet : Best practise for managing Conda environments?
De : martin.schoon (at) *nospam* gmail.com (Martin Schöön)
Groupes : comp.lang.python
Date : 21. Sep 2026, 10:17:29
Autres entêtes
Organisation : @ Home
Message-ID : <nhcb19FjpohU1@mid.individual.net>
User-Agent : slrn/1.0.3 (Linux)
I am a occasional Python user and hence only post here rather seldom.
Full time lurker though :-)

I am a full time Linux user and moved from pip to conda for managing
my Python life a few years ago. I am not an advanced conda user by
any measure. For the most part moving to conda was a good idea.

Yesterday, however, I encountered a problem that a quick internet
search told me is somewhat common: adding a package to an environment
stalls at the 'solving environment' stage. I found a bunch of rather
different 'fixes'. I have not tried any yet. I think maybe I am doing
environments wrong.

Among the 'fixes' suggested are:

* Use mamba for installing packages.
* conda config --set channel_priority strict
* Remove and re-create environments to ensure packages are up-to-date.

The last one was not stated explicitly. I created it by
'interpreting' several posts that made me think I have done environments
the wrong way.

My thinking now:

I should have more rather than fewer environments and make them more
task specific -- avoid 'general purpose' environments to limit the
number of packages in each environment.

I have noticed that "conda update whatever" /always/ tells me everything
is up-to-date. This can't be true. Will the procedure of the third
bullet above solve this?

No, I have not tried asking any LLM. I hope for some real human advice.

TIA

/Martin

Date Sujet#  Auteur
21 Sep 26 * Best practise for managing Conda environments?15Martin Schöön
21 Sep 26 +* Re: Best practise for managing Conda environments?4Martin Schöön
21 Sep 26 i`* Re: Best practise for managing Conda environments?3Jon Ribbens
22 Sep08:33 i +- Re: Best practise for managing Conda environments?1Stefan Ram
22 Sep10:08 i `- Re: Best practise for managing Conda environments?1Jon Ribbens
22 Sep08:44 +* Re: Best practise for managing Conda environments?2Lawrence D’Oliveiro
22 Sep09:14 i`- Re: Best practise for managing Conda environments?1Loris Bennett
22 Sep20:53 `* Re: Best practise for managing Conda environments?8Martin Schöön
23 Sep09:17  `* Formatting (was: Best practise for managing Conda environments?)7Stefan Ram
23 Sep13:42   +* Re: Formatting3Stefan Ram
23 Sep15:43   i`* Re: Formatting2Stefan Ram
23 Sep16:01   i `- Re: Formatting1Stefan Ram
23 Sep14:38   +- Re: Formatting1Stefan Ram
24 Sep09:31   `* Re: Formatting (was: Best practise for managing Conda environments?)2Martin Schöön
25 Sep09:53    `- Re: Formatting (was: Best practise for managing Conda environments?)1Martin Schöön

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal