Conda

Basics

conda env list
conda create -n env_name python=3.11 --no-default-packages
conda env remove -n ENV_NAME

Export to yml file

# after conda activate env_name
conda export env > env_test.yml

Create env with yml file

conda env create –f xxx.yml

Make a copy of a conda environemnt

conda create --clone env_name -n new_env_name

Upgrade package

pip install <package_name> --upgrade

Update conda to the current version

conda update conda