Skip to content

Lesson 3: Managing Environments

A Conda environment is an isolated directory that contains a specific set of packages and versions. Each environment can have different tools without interfering with each other.

This is essential in bioinformatics because different projects often require different tool versions.

The base environment is the core Conda installation. Installing many packages into base makes it harder to maintain and can break other workflows.

Warning: Do not install workflow-specific tools in base. Always use a dedicated environment.

This command lists all Conda environments and shows the active one.

Terminal window
conda env list

This command creates an environment called qc with Python 3.9.

Terminal window
conda create -n qc python=3.9

This command activates the qc environment so you can install and run tools inside it.

Terminal window
conda activate qc

Your shell prompt should change to show the active environment name.

This command returns you to the base environment.

Terminal window
conda deactivate

This command deletes the qc environment and all packages inside it.

Terminal window
conda env remove -n qc

Note: Removing an environment is safe as long as you do not need those tools anymore. You can always recreate it later.