Is it possible to find out when a specific conda environment was used, i.e., activated, the last time? How?
Background info: The idea is to sort the environments by their last use date and this way find out which one could be removed.
Is it possible to find out when a specific conda environment was used, i.e., activated, the last time? How?
Background info: The idea is to sort the environments by their last use date and this way find out which one could be removed.
ls -lt {conda path}/envs/
This should suffice to see the last changes to the environments. Last activation time could be taken with
HISTTIMEFORMAT="%d/%m/%y
history | grep --only-matching 'conda activate.*' | sort --unique
© 2022 - 2025 — McMap. All rights reserved.