#! /bin/bash # refer to https://linuxize.com/post/how-to-install-anaconda-on-centos-7/ # Installation of Anaconda3-5.3.1-Linux-x86_64.sh # Check out the latest anaconda version at # https://www.anaconda.com/distribution/#download-section # assumed cuda-10.1 or higher has been installed in /usr/local/cuda # Run this script as su # Require manual intervention testdir=/share/apps/configrepo cd $testdir f2i=Anaconda3-5.3.1-Linux-x86_64.sh if [ ! -e "$f2i" ] ; then echo "$f2i" not found else echo "$f2i" found. fi echo ' ' read -p "Press ENTER to proceed with the download of $f2i. Press 'n' if DO NOT wish to download $f2i. " pass if test "$pass" = "n" then echo "Will not download" $f2i else echo "Download " $f2i curl -O https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh fi echo ' ' read -p "Press ENTER to proceed with the installation of $f2i. Press 'n' if DO NOT wish to proceed with the installation of $f2i. " pass if test "$pass" = "n" then echo "Will not proceed with the installatoin of " $f2i else echo "Proceed with the installatoin of " $f2i ## %%%%% bash Anaconda3-5.3.1-Linux-x86_64.sh ## When prompted, install Anaconda at /share/apps/anaconda3 (not in /root/anaconda3) source ~/.bashrc conda info conda update conda conda update anaconda ### this list all conda packages that are available conda list --explicit conda list --explicit > spec-file.txt conda install -c conda-forge keras numba numpy matplotlib scipy cudatoolkit tensorflow-gpu cudnn ## %%%%% fi # end if "Proceed with the installatoin of " $f2i