We will see how to set up the latest Python via miniconda on ACE HPC. You can download the latest python version as per your OS from here MiniConda (Linux – Miniconda3 Linux 64-bit )
Please make sure you have enabled internet. – Internet Without GUI
#download Python script
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
#make it executable
chmod +x Miniconda3-latest-Linux-x86_64.sh
#Install python
./Miniconda3-latest-Linux-x86_64.sh
.
.
.
Please, Press ENTER to continue
>>>
Do you accept the license terms? [yes|no]
[no] >>> yes
.
.
.
.
#Press ENTER
Anaconda3 will now be installed into this location:
/home/user/miniconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/user/miniconda3] >>>
.
.
.
.
#Enter NO
Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> no
.
.
.
.
Thank you for installing Miniconda3!
.
.
.
#You may wish to edit your .bashrc to prepend the miniconda install location to PATH:
#miniconda
export PATH=$HOME/miniconda3/bin:$PATH
#Then Source your bashrc to make the python environment reflect
source ~/.bashrc
#Check which python it is pointing to
which python
Output :
~/miniconda3/bin/python
#You can check the python version with below command.
python --version
Python 3.9.12
#You can install pip and then later install all the packages you need via pip
conda install -c anaconda pip