Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #198052
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Martin Schöön <martin.schoon@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Best practise for managing Conda environments? |
| Date | 22 Sep 2026 19:53:20 GMT |
| Organization | @ Home |
| Lines | 47 |
| Message-ID | <nhg4lgF7nmhU1@mid.individual.net> (permalink) |
| References | <nhcb19FjpohU1@mid.individual.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net xw50VKm32jhAPPtEMBcM8g7mQrB5ixWmSGDgf5DSFbVLhyqlhc |
| Cancel-Lock | sha1:IXUPEwNp/lEHW2rRf1t///7j428= sha256:q/yY8doDt/+FiAFBTkRPZYfOrqJSuL0D50S5XMcDOS4= |
| User-Agent | slrn/1.0.3 (Linux) |
| Xref | csiph.com comp.lang.python:198052 |
Show key headers only | View raw
Den 2026-09-21 skrev Martin Schöön <martin.schoon@gmail.com>: <snip> > 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. > <snip> > 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. OK guys and gals, I have done some research and think I have answers. Yes, I have indeed done environments wrong! The following three are the most concise ones when it comes to advice: https://nsc.gitlab-pages.liu.se/berzelius-training/managing-conda-environments-best-practices/1.%20concepts/ https://nsc.gitlab-pages.liu.se/berzelius-training/managing-conda-environments-best-practices/2.%20best-practices/ https://msi.umn.edu/getting-started/help/knowledge-base/best-practices-conda These are also good: https://techietory.com/managing-python-environments-with-conda/ https://www.whiteboxml.com/blog/the-definitive-guide-to-python-virtual-environments-with-conda https://thejacksonlaboratory.github.io/bestpractices_workshop/conda.html TLDR: * Create task specific environments. * Use mamba. * Try, as far as possible, to instal all needed packages in one go. * Don't mend/tinker with environments. Create new ones instead. * Document your environments. README.md or something... I also asked Duck.ai (front end for Mistral Small 4 in my case) for advise. The results looks like a summary of the information I linked to. I will post it separately after having read through and figured out how to format it for usenet news. /Martin
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Best practise for managing Conda environments? Martin Schöön <martin.schoon@gmail.com> - 2026-09-21 09:17 +0000
Re: Best practise for managing Conda environments? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-21 17:32 +0800
Re: Best practise for managing Conda environments? Martin Schöön <martin.schoon@gmail.com> - 2026-09-21 20:33 +0000
Re: Best practise for managing Conda environments? Jon Ribbens <jon+usenet@unequivocal.eu> - 2026-09-21 22:05 +0000
Re: Best practise for managing Conda environments? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-22 14:37 +0800
Re: Best practise for managing Conda environments? ram@zedat.fu-berlin.de (Stefan Ram) - 2026-09-22 07:33 +0000
Re: Best practise for managing Conda environments? Jon Ribbens <jon+usenet@unequivocal.eu> - 2026-09-22 09:08 +0000
Re: Best practise for managing Conda environments? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-22 22:53 +0800
Re: Best practise for managing Conda environments? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-22 15:08 +0800
Re: Best practise for managing Conda environments? Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-22 07:44 +0000
Re: Best practise for managing Conda environments? "Loris Bennett" <loris.bennett@fu-berlin.de> - 2026-09-22 10:14 +0200
Re: Best practise for managing Conda environments? Martin Schöön <martin.schoon@gmail.com> - 2026-09-22 19:53 +0000
Re: Best practise for managing Conda environments? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-23 04:57 +0800
Formatting (was: Best practise for managing Conda environments?) ram@zedat.fu-berlin.de (Stefan Ram) - 2026-09-23 08:17 +0000
Re: Formatting Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-23 20:08 +0800
Re: Formatting ram@zedat.fu-berlin.de (Stefan Ram) - 2026-09-23 12:42 +0000
Re: Formatting ram@zedat.fu-berlin.de (Stefan Ram) - 2026-09-23 14:43 +0000
Re: Formatting ram@zedat.fu-berlin.de (Stefan Ram) - 2026-09-23 15:01 +0000
Re: Formatting ram@zedat.fu-berlin.de (Stefan Ram) - 2026-09-23 13:38 +0000
Re: Formatting (was: Best practise for managing Conda environments?) Martin Schöön <martin.schoon@gmail.com> - 2026-09-24 08:31 +0000
Re: Formatting (was: Best practise for managing Conda environments?) Martin Schöön <martin.schoon@gmail.com> - 2026-09-25 08:53 +0000
csiph-web