Version and package management
General
TODO: plain venv, conda, poetry, pyenv, pyenv-virtualenv, pdm comparison
conda and conda-like
condais a package manager that also manages virtual environments.mambais a faster drop-in replacement forconda.
They both have their full-fledged version and "mini" version, e.g. anaconda and miniconda / mambaforge and miniforge.
Migrate condainstallation to a different directory
At installation, it's possible to select the directory where the environment will be stored.
After installation:
- Simply move the
$HOME/miniconda3(default installation) to the new directory. - Open
/path/to/new/dir/miniconda3/condabin/condaand change the!/$HOME/miniconda3/pythonto!/path/to/new/dir/miniconda3/python. - Run
/path/to/new/dir/miniconda3/condabin/conda initto update the shell initialization script.
Usually this will be enough. If not, you might need to update the PATH variable in the shell initialization script.
Use libmamba solver for conda
# need conda > 22.11
conda update -n base -c defaults conda
conda install -n base conda-libmamba-solver
conda config --set solver libmamba