2. Unix Python

2.1. Python

2.1.2. FreeBSD OpenBSD

  • FreeBSD Python :

    pkg install python3
    
  • OpenBSD users, to add the package use:

    pkg_add -r python
    
    pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/<insert your architecture here>/python-<version>.tgz
    

    i386 Python 2.5.1 :

    pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/python-2.5.1p2.tgz
    

2.1.3. OpenSolaris

OpenCSW Python Python e.g. pkgutil -i python27.

2.2. Python

If you want to compile CPython yourself, first thing you should do is get the source. You can download either the latest releases source or just grab a fresh clone. (If you want to contribute patches, you will need a clone.)

./configure
make
make install

Configure Unix Python README.rst

make install python3 make install exec_prefix/bin/pythonversion make altinstall

2.4.

To easily use Python scripts on Unix, you need to make them executable, e.g. with

$ chmod +x script

shebang

#!/usr/bin/env python3

PATH Python Unix env /usr/bin/python3

Python subprocess

2.5. IDE

Python IDE IDE PEP-8

Python Editors Integrated Development Environments