Create and delete virtual environment in anaconda(python)

by Abhishek Vaish
Dec 22, 2020



In anaconda prompt

Create a Virtual Environment

    conda create -n name_of_your_env python=x.x

python=x.x can be any python version of your to get the latest version of python 3 you can just put python=3


Activate a Virtual environment

    conda activate name_of_your_env

Deactivate a Virtual environment

    conda deactivate

Get the list of all environment

    conda env list

Delete a virtual environment

    conda env remove -n name_of_your_env