https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#determine-current-env
To create an environment:
conda create --name myenv
Note
Replace myenv with the environment name.
When conda asks you to proceed, type y:
proceed ([y]/n)?
This creates the myenv environment in /envs/. No packages will be installed in this environment.
To create an environment with a specific version of Python:
conda create -n myenv python=3.9
To create an environment with a specific package:
conda create -n myenv scipy
OR:
conda create -n myenv python
conda install -n myenv scipy
To create an environment with a specific version of a package:
conda create -n myenv scipy=0.17.3
OR:
conda create -n myenv python
conda install -n myenv scipy=0.17.3
To create an environment with a specific version of Python and multiple packages: