Conda is an open-source, cross-platform, language-agnostic package manager and environment management system.
conda create -n myenv python=3.9 -y
conda activate myenv
conda deactivate
Or we can create an environment from a YAML config file:
conda env create -f environment.yml
Check the created environments:
conda env list
conda remove -n myenv --all
conda remove -p <path> --all
List all packages installed into the environment myenv:
conda list
Install a package, e.g., cuda 12.1:
conda install nvidia/label/cuda-12.1.0::cuda
conda list -e > requirements.txt
conda create --name <env> --file requirements.txt
conda install python=$pythonversion$