diff options
| author | kennykos <“gkosmacher01@gmail.com”> | 2023-02-15 16:06:05 -0600 |
|---|---|---|
| committer | kennykos <“gkosmacher01@gmail.com”> | 2023-02-15 16:06:05 -0600 |
| commit | b6b578249e447614f7a9e07c7b2343e625d21101 (patch) | |
| tree | 9f0e68432200809698b0ec230d2125c309204f57 /setup/setup_conda.sh | |
| parent | 49cbd4bbe57cb81c63c564343b8f85186ea58b21 (diff) | |
setup directory for conda setup
Added setup directory for conda setup
Diffstat (limited to 'setup/setup_conda.sh')
| -rw-r--r-- | setup/setup_conda.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/setup/setup_conda.sh b/setup/setup_conda.sh new file mode 100644 index 0000000..e7d4e3e --- /dev/null +++ b/setup/setup_conda.sh @@ -0,0 +1,22 @@ +# 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 <version> <platform>" + 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 |
