usunyu   Stay hungry. Stay foolish.

Conda Operation Tips

To create an environment:

conda create --name myenv

To create an environment with a specific version of Python:

conda create -n myenv python=3.10

To create an environment with a specific package:

conda create -n myenv scipy

To create an environment with a specific version of Python and multiple packages:

conda create -n myenv python=3.10 scipy astroid babel

Config to disable the automatic base activation:

conda config --set auto_activate_base false

To use, or activate the new environment:

conda activate myenv

To deactivate an environment:

conda deactivate

To delete an environment, run the command below:

conda remove --name myenv --all

Resource: