conda install package in environment code example

Example 1: How do I set Conda to activate the base environment by default?

conda config --set auto_activate_base true

Example 2: conda install package

#To install a package in currently active enviroment
conda install package-name

Example 3: how to use pip install conda environment

Open Anaconda Navigator
Select Environments in the left hand pane below home
Just to the right of where you selected and below the "search environments" bar, you should see base(root). Click on it
A triangle pointing right should appear, click on it an select "open terminal"
Use the regular pip install command here. There is no need to point to an environment/ path

Example 4: conda install package

#To install specific package version into a specific named environment
conda install package-name=2.3.4 -n some-environment