install in conda environment code example

Example 1: conda env

conda create --name myenv

Example 2: delete conda environment

conda remove --name myenv --all

Example 3: conda activate environment

conda activate myenv

Example 4: 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

Tags:

Cpp Example