conda see virtual environments code example
Example 1: anaconda duplicate environment
conda create --name myclone --clone myenv
Example 2: new env in conda
conda create --name myenv
conda create --name myclone --clone myenv
conda create --name myenv