User Tools

Site Tools


python-software

This is an old revision of the document!


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.7
$ python -V

Installation

Notes from the sysadmin during installation:

$ cd /tmp
$ wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
$ cd Python-3.7.1
$ sudo yum install libffi-devel sqlite-devel libuuid-devel tk-devel tcl-devel
$ sed -i -e "s|testCongestion|disabled_&|" Lib/test/test_socket.py
$ sed -i -e "s|-flto |-flto=4 |g" configure configure.ac
$ ./configure --prefix=/export/apps/python/3.7 --enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6
$ make -j4
$ sudo mkdir -p /export/apps/python/3.7
$ sudo chown aorth /export/apps/python/3.7
$ make install
$ make maninstall
$ ln -s /export/apps/python/3.7/bin/python3 /export/apps/python/3.7/bin/python
$ ln -s /export/apps/python/3.7/share/man/man1/python3.7.1 /export/apps/python/3.7/share/man/man1/python.1
$ ln -s /export/apps/python/3.7/bin/pip3 /export/apps/python/3.7/bin/pip
$ sudo yum remove libffi-devel sqlite-devel libuuid-devel tk-devel tcl-devel
$ sudo chown -R root:root /export/apps/python/3.7

Configure options borrowed from Arch Linux's Python package.

python-software.1541084822.txt.gz · Last modified: 2018/11/01 15:07 by aorth