Table of Contents
conda create --name $USER
conda activate $USER
# install
conda install numpy scipy matplotlib -yLinux 64bits python 3.7
# <1> download
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -P /tmp
chmod +x /tmp/Miniconda3-latest-Linux-x86_64.sh
# <2> install
/tmp/Miniconda3-latest-Linux-x86_64.shfor other than linux 64bits python 3.7, go grab the link on https://conda.io/miniconda.html
This should be done at installation.
Adding conda command to path: helping to switch environments.
Append the sourcing of this file at the end of your ~/.bashrc :
append to
.bashrccat <<EOT >> $HOME/.bashrc
# enable conda for the current user (if installed in $HOME/miniconda3)
if [ -d "$HOME/miniconda3" ]; then
. $HOME/miniconda3/etc/profile.d/conda.sh
# and activate the user env
conda activate $USER
fi
EOT
# and apply changes
source $HOME/.bashrcexport / import with name
conda env export > environment.yml
conda env create -f environment.ymlimport / export wo name
conda env export | grep -v "^prefix: " > environment.yml
conda env create -f environment.yml --name NEWENVimport / export explicit versions
conda list --explicit > pkgs.txt
conda create --name NEWENV --file pkgs.txt— from conda.io
echo env=${CONDA_PREFIX}
mkdir -p ${CONDA_PREFIX}/etc/conda/activate.d
mkdir -p ${CONDA_PREFIX}/etc/conda/deactivate.d
touch ${CONDA_PREFIX}/etc/conda/activate.d/env_vars.sh
touch ${CONDA_PREFIX}/etc/conda/deactivate.d/env_vars.sh— see: conda.io