Install Python - CPython¶
Linux¶
Standard procedure, see Python.org, Python2, and Python3.
The package expects eventuall custom build Python interpreters located at the path:
1 | /opt/python/python-<version>
|
The runtime routinesexpand the version suffix in case of partial numbers to the highest available completion. This includes the Python convention.
For the available versions
1 2 3 | [acue@lap001 syscalls]$ ls /opt/python/
python-2.6.6 python-2.6.9 python-2.7.12 python-3.3.6 python-3.5.2 python-3.6.2
python-2.6.8 python-2.7.11 python-2.7.13 python-3.4.6 python-3.5.3
|
the following examples apply:
1 2 3 4 5 6 7 8 9 10 | python2 => python-2.7.13
python2.7 => python-2.7.13
python3 => python-3.6.2
python-2 => python-2.7.13
python-2.7 => python-2.7.13
python-2.7.11 => python-2.7.11
python-3.5 => python-3.5.3
python-3 => python-3.6.2
python-2.6 => python-2.6.9
|
Windows¶
Standard procedure, with expected defaults:
Python | Drive | Path |
---|---|---|
Python2.7 | C: E: F: | \Python2.7 |
Python3.5 | C: E: F: | \Python3.5 |
Python3.6 | C: E: F: | \Python3.6 |
See Python.org.
OS-X¶
Standard procedure with some “quirks”.
homebrew
The “almost formally correct” use of brew, when it works proper - from the box.
1
brew install python
Install with installer
In case of difficulties, e.g. with the git error, the on-board utilities approach may help.
1 2
installer -pkg python-3.5.3-macosx10.6.pkg -target / installer -pkg python-3.6.2-macosx10.6.pkg -target /
See Python.org.
Solaris¶
a.s.a.p.