access_BomAccessDocumentation_bom conda_conda_installation - ACCESS-NRI/accessdev-Trac-archive GitHub Wiki
CONDA INSTALLATION
This is a general conda installation guide on NCI HPC. The process described in this wiki is fully implemented and tested on Raijin.
Download Miniconda
It seems now that only the latest Miniconda bash installer can be downloaded. Go into the folder where suitable for the binary,
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
There are various version of the Miniconda2/3 archived on raijin
,
cd /projects/access/apps/conda/software
ls -l
total 214528
-rw-r-----+ 1 wml548 access.admin 52063402 Aug 15 14:52 Miniconda2-4.7.10-Linux-x86_64.sh
-rw-r--r--+ 1 wml548 access.admin 34663461 Aug 15 14:52 Miniconda3-4.3.11-Linux-x86_64.sh
-rw-r--r--+ 1 wml548 access.admin 57669415 Aug 15 14:52 Miniconda3-4.3.31-Linux-x86_64.sh
-rw-r-----+ 1 wml548 access.admin 75257002 Aug 15 14:52 Miniconda3-4.7.10-Linux-x86_64.sh
Install Miniconda
The process applies to any version of the bash installer.
cd PATH_to_miniconda_bash_installer
bash Miniconda3-4.3.11-Linux-x86_64.sh
# enter to continue
# review the license and accept the license by typing yes
# specify the location for installation
# $ver=4.3, 4.4, 4.5, 4.6, 4.7
/projects/access/apps/miniconda/$version
# say no to adding conda path to .bashrc
Update Miniconda
To update Miniconda to the latest version
cd /projects/access/apps/miniconda/$version/bin
conda update conda
To update conda to a certain version,
cd /projects/access/apps/miniconda/$version/bin
# new_version>$version, e.g., 4.5>4.3
conda install conda=$new_version
Set up Miniconda Module
cd /projects/access/modules/miniconda/
touch $version
The file $version
is as ($version=4.7)
#%Module1.0
#
# Module for ACCESS Anaconda
# Note: The same module file is used for all environments
# Don't allow multiple conda environements
conflict conda
set prefix /projects/access/apps/miniconda
set version "4.7"
setenv CONDA_PREFIX $prefix/$version
prepend-path PATH $prefix/$version/bin