Anaconda Distribution is a Python/R data science distribution and a collection of over 7,500+ open-source packages, which includes a package and environment manager. Anaconda is platform-agnostic, so you can use it whether you are on Windows, macOS, or Linux. For a detailed introduction to Anaconda, see the Anaconda User Guide.
To create an Anaconda environment, you can use the conda create command, after having loaded the wanted anaconda version as shown above:
% conda create --prefix /path/to/my_conda_env python=<version>
The –prefix option is recommanded to specify a path with write privileges for the environment and by favouring a shared storage space, because conda environments can be large.
Then you can activate the environment with the conda activate command:
% conda activate /path/to/my_conda_env
To install a package in the environment, you can use the conda install command:
% conda install -c <conda-channel> <package>
To deactivate the environment, you can use the conda deactivate command:
% conda deactivate