python-software
This is an old revision of the document!
Table of Contents
python
Python programming language. Standalone python for use with environment modules that need something other than the system's Python.
Information
- Version: 3.10 (3.10.16)
- Added: October, 2014
- Updated: February, 2025
- Link: https://www.python.org
Usage
See versions which are available:
$ module avail python
Load one version into your environment and run it:
$ module load python/3.10 $ python -V
Installation
Notes from the sysadmin during installation:
$ cd /tmp
$ wget https://www.python.org/ftp/python/3.10.16/Python-3.10.16.tar.xz
$ tar xf Python-3.10.16.tar.xz
$ cd Python-3.10.16
$ CFLAGS="${CFLAGS/-O2/-O3} -ffat-lto-objects"
$ ./configure --prefix=/export/apps/python/3.10 --enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 --with-tzpath=/usr/share/zoneinfo
$ chrt -i 0 make -j4 # this make doesn't seem to scale well
$ sudo mkdir /export/apps/python/3.10
$ sudo chown aorth /export/apps/python/3.10
$ make install
$ make maninstall
$ ln -s /export/apps/python/3.10/bin/python3 /export/apps/python/3.10/bin/python
$ ln -s /export/apps/python/3.10/share/man/man1/python3.10.1 /export/apps/python/3.10/share/man/man1/python.1
$ ln -s /export/apps/python/3.10/bin/pip3 /export/apps/python/3.10/bin/pip
$ ln -s /export/apps/python/3.10/bin/idle3 /export/apps/python/3.10/bin/idle
$ ln -s /export/apps/python/3.10/bin/python3-config /export/apps/python/3.10/bin/python-config
$ ln -s /export/apps/python/3.10/bin/pydoc3 /export/apps/python/3.10/bin/pydoc
$ sudo chown -R root:root /export/apps/python/3.10
Configure options borrowed from Arch Linux's Python package.
python-software.1740751260.txt.gz · Last modified: (external edit)
