User Tools

Site Tools


python-software

Table of Contents

python

Python programming language.

Information

Usage

See versions of python which are available:

$ module avail python

Load a particular version into your environment and run it:

$ module load python/3.8
$ python -V

Installation

Notes from the sysadmin during installation:

$ cd /tmp
$ wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tar.xz
$ tar xf Python-3.8.11.tar.xz 
$ cd Python-3.8.11
$ scl enable devtoolset-7 bash
$ ./configure --prefix=/export/apps/python/3.8 --enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6
$ CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
$ LDFLAGS="$LDFLAGS -fno-semantic-interposition"
$ chrt -i 0 make -j4
$ sudo mkdir -p /export/apps/python/3.8
$ sudo chown aorth /export/apps/python/3.8
$ make install
$ make maninstall
$ ln -s /export/apps/python/3.8/bin/python3 /export/apps/python/3.8/bin/python
$ ln -s /export/apps/python/3.8/share/man/man1/python3.8.1 /export/apps/python/3.8/share/man/man1/python.1
$ ln -s /export/apps/python/3.8/bin/pip3 /export/apps/python/3.8/bin/pip
$ sudo chown -R root:root /export/apps/python/3.8

Configure options borrowed from Arch Linux's Python package.

python-software.txt · Last modified: 2021/08/26 08:28 by aorth