- Download Miniconda3 from here
- Run
sh Miniconda3-latest-Linux-x86_64.shto install
Add the below code to the .zshrc file to work with conda where /home/devlop/apps is a custom location where Miniconda3 is installed
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/devlop/apps/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/devlop/apps/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/devlop/apps/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/devlop/apps/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
- Now exit all terminal windows and run it again
- Disable conda's base environment on startup using
conda config --set auto_activate_base falseExit the terminal and run it again. Now you will see conda's base environment is disable on startup - Create a conda environment
conda create -n kaggle python=3.8.5A conda environment is created with namekagglewhich can be activated using:conda activate kaggle - Install the package from conda repository or PyPi repository using
conda/pip install package_name - Create the environment from file using
conda env create -f environment.yml - List all packages in the current environment:
conda list - Save packages for future use:
conda list --export > package.yml - Export your active environment to a new file:
conda env export > environment.yml