export all installed packages in environment anaconda code example
Example 1: conda remove environment
conda remove --name myenv --all
Example 2: anaconda clone environment
conda create --name myclone --clone myenv
conda remove --name myenv --all
conda create --name myclone --clone myenv