Manage Environments
# List
conda env list
# Create
conda create -n my_environment_name python=3.11.5
# Delete
conda remove -n my_environment_name --all
# Activate
conda activate my_environment_name
# Deactivate
conda deactivate
# Check Conda Health
conda doctorCreating Environments
# Create with name and python version
conda create -n my_environment_name python=3.11.5
# Create with a yaml configuration
conda env create -n my_environment_name -f environment.ymlMaintenance
# Reset base environment to scratch
# Note: this can damage other environments, so use as a last resort
conda install --revision 0
💡
I work at Microsoft, but the views expressed here are my own and do not represent Microsoft's official positions, guidance, or content.