If you do conda info --envs
you get a list of the environments you create in anaconda
Is there a way to do this but to get also the dates of creation of these environments?
If you do conda info --envs
you get a list of the environments you create in anaconda
Is there a way to do this but to get also the dates of creation of these environments?
You can try the following steps:
Figure out the root folder of all the environments. You can do this by using conda env list
command. This will show a list of environments with their path.
You can check the creation date of the folder corresponding to each environment.
For mac, the root folder for all environments was /anaconda3/envs. Inside that folder, just type ls -ltr
.
envs=`conda env list | tail -n +4 $1`;
IFS=' ';
for x in ${envs};
do read -a res <<< "$x";
echo $(ls --full-time --no-group -g -d $res);
done
Explanation by lines:
conda env list
has a white space as delimiter (this ensures that yours IFS has this separatorFeel free to customize yours or edit this one.