# taken from mobilitynet-analysis-scripts/setup/setup_conda.sh EXP_CONDA_VER=$1 PLATFORM=$2 echo "Installing for version $EXP_CONDA_VER and platform $PLATFORM" if [[ -z $EXP_CONDA_VER || -z $PLATFORM ]]; then echo "Usage: setup_conda.sh " echo " Platform options are Linux-x86_64, MacOSX-x86_64" echo " For Windows, manually download and install https://repo.anaconda.com/miniconda/Miniconda3-$EXP_CONDA_VER-Windows-x86_64.exe" else INSTALL_PREFIX=$HOME/miniconda-$EXP_CONDA_VER SOURCE_SCRIPT="$HOME/miniconda-$EXP_CONDA_VER/etc/profile.d/conda.sh" curl -o miniconda.sh -L https://repo.continuum.io/miniconda/Miniconda3-$EXP_CONDA_VER-$PLATFORM.sh; bash miniconda.sh -b -p $INSTALL_PREFIX source $SOURCE_SCRIPT hash -r conda config --set always_yes yes --set changeps1 no # Useful for debugging any issues with conda conda info -a echo "Successfully installed at $INSTALL_PREFIX. Please run 'source $SOURCE_SCRIPT' in every terminal where you want to use conda" fi