From docs of conda-pack: https://conda.github.io/conda-pack/
Questions about code comments below:
**Q1:**What do "Cleanup prefixes" and "active environment" mean?
**Q2:**What 's the difference between executing conda-unpack and not
# Cleanup prefixes from in the active environment.
# Note that this command can also be run without activating the environment
# as long as some version of python is already installed on the machine.
(my_env) $ conda-unpack
I execute as the docs says all the cmds except for the "conda-unpack", because I'm not aware of the influence on it.
active environment
The
active environmentrefers to the currently activated conda environment. This is what you do when usingconda activate, which activates the standard conda environment, orconda activate envnamewithenvnamebeing a specific named environment.When you activate an environment, you are telling your system to use the specific versions of packages and dependencies installed in that environment.
More on that see How to activate an Anaconda environment
cleanup prefixes
Cleanup prefixesrefers to the process of removing any hard-coded paths in the environment's files that point to the location of the environment on the source machine. This is necessary when moving a conda environment to a new machine or location.conda unpack
conda-unpackis a command that should be run after unpacking a conda environment on a new machine or location. It performs the cleanup of prefixes and sets up scripts for activating and deactivating the environment. If you don't run conda-unpack, you may encounter issues with hard-coded paths in the environment's files.