Miniforge3 – The minimalistic installer for Conda & Mamba
Create Environments at any path, prompt and display it by its generic name
-
Jump to the folder with the downloaded installer, open the Terminal (F4) and run the installation by
Terminal./MINIFORGE-FILE.sh -
After installation jump to the bin-folder of the installation (default:
$HOME/miniforge3/bin/) and initialize the conda-shell for easier access from Terminal:Terminal ($HOME/miniforge3/bin/)./conda initNow restart the Terminal for the initialization to take effect.
-
These are the expected directory-structure & command-usage for the following scenario:
Scenario-example
Collection of virtual environments (folder): $HOME/conda-envs New virtual environment (folder): $HOME/conda-envs/NAME_OF_ENVIRONMENT Terminal-Command to activate the environment: conda activate NAME_OF_ENVIRONMENT -
Create an folder for the collection of future environments (e.g.:
$HOME/conda-envs/). Now create a python-environment (e.g.: env_1) inside byTerminalconda create -p $HOME/conda-envs/env_1 pythonIts going to install the newest version of python.
-
Append the parent folder (directory containing environments) into the conda-config for prompting any environment by its generic name:
Terminalconda config --append envs_dirs $HOME/conda-envs -
Take a last change inside the conda-config to show only the generic name instead of the full path after activating any environment:
Terminalconda config --set env_prompt '({name})'The file at Path "$HOME/.condarc" should finally look like this:
$HOME/.condarcchannels: - conda-forge auto_activate_base: false envs_dirs: - $HOME/conda-envs env_prompt: ({name})
Usage & Results
Open the Linux-Terminal (Win + T) and activate your custom set Conda-Environment:

To install additional Python-Packages use conda install instead of the pip
command