How to create and activate a conda environment
Create a conda environment
-
Open the terminal and type:
conda create -n <name> python=3.10 -yNote: Here, I specifically install Python 3.10. Choose
python=3to install the latest version.
Activate a conda environment
-
To activate the environment, in the terminal type:
conda activate <name> -
If you don’t recall the name, type the following to list all your conda environments.
conda env list -
To know the Python version that is installed in your environment, type:
python --version