Python setup
- Go to https://www.python.org/downloads/source/
- Choose the “gzipped source tarball” for the Python release you want and copy the link location to be used with the
wgetcommand below - ssh to kestrel and perform the following commands to compile and install Python:
cd
mkdir python3
cd python3
wget https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tgz (or your preferring version from the link you copied above)
tar xzvf Python-3.10.5.tgz
cd Python-3.10.5
./configure --prefix=/home/YOURUSERNAME/python3/
make
make install
- Use the following 2 commands to use your Python environment:
export PATH=/home/YOURUSERNAME/python3/bin:$PATH
export PYTHONPATH=/home/YOURUSERNAME/python3