Skip to content
Lavadav edited this page Oct 12, 2022 · 4 revisions

1. Create a new environment

conda create -n <env_name>

eg: conda create -n busco

# Conda with specific python version

eg: conda create -n busco python==3.7.5

2. Activate the environment

conda activate <env_name>

3. Conda install packages in this environment

conda install <package_name==version>

eg: conda install numpy==1.11

4. List packages in current environment

conda list -n myenv

5. List all environments

conda env list

# Asterisk (*) is present infront of current environment you are in.

6. Remove an Environment

conda env remove -n <env_name>

7. Restore older version of an environment

conda list --revisions

conda install --rev <revision no. you want to restore>