condaΒΆ
Advanced Installation || pip || uv || pixi || conda || Spack
Install libEnsemble with Conda from the conda-forge channel:
conda config --add channels conda-forge
conda install -c conda-forge libensemble
This package comes with some useful optional dependencies, including optimizers and will install quickly as ready binary packages.
Installing with mpi4py with Conda
If you wish to use mpi4py with libEnsemble (choosing MPI out of the three
communications options), you can use the
following.
Note
For clusters and HPC systems, always install mpi4py to use the
system MPI library (see pip instructions above).
For a standalone build that comes with an MPI implementation, you can install libEnsemble using one of the following variants.
To install libEnsemble with MPICH:
conda install -c conda-forge libensemble=*=mpi_mpich*
To install libEnsemble with Open MPI:
conda install -c conda-forge libensemble=*=mpi_openmpi*
The asterisks will pick up the latest version and build.
Note
This syntax may not work without adjustments on macOS or any non-bash shell. In these cases, try:
conda install -c conda-forge libensemble='*'=mpi_mpich'*'
For a complete list of builds for libEnsemble on Conda:
conda search libensemble --channel conda-forge