Comparing conda exports from working and not working environments, I found that pinning libgcc to an earlier version fixes it:
This envirnoment works:
name: working_env
channels:
- conda-forge
- defaults
dependencies:
- python = 3.12
- scikit-learn
- pandas
- numpy
- matplotlib
- pytensor=2.28.2
- pymc = 5.21
- arviz = 0.21
- jupyter
- pip
- libgcc=14.2.0=h1383e82_2
This one doesn’t (same as above except remove the -libgcc pin:
name: broken_env
channels:
- conda-forge
- defaults
dependencies:
- python = 3.12
- scikit-learn
- pandas
- numpy
- matplotlib
- pytensor=2.28.2
- pymc = 5.21
- arviz = 0.21
- jupyter
- pip
In this version, libgcc is 15.1.0
The other pinned versions may not matter, I just have not had a chance to test that (building and destroying conda environments is a bit time consuming !)