Using python 2.6?

I have no way to upgrade to python 2.7 or 3.1, so I am stuck with python 2.6 on my ubuntu 10.04 machine.

can i still find a host supporting python 2.6?

uses python 2.6 while still considering outdated or bad practice?

+5
source share
4 answers

can i still find a host that supports python 2.6?

Yes. No problems.

uses python 2.6 still considering outdated or bad practice?

No, it is not.

However:

I have no way to upgrade to python 2.7

Yes you do. Download the source code from www.python.org and install it. What you need to do to not overwrite the Python system.

"altinstall" ( python), , . :

$ ./configure --prefix = /opt/python27
$ make
$ sudo make install

Python , , , , Python.

.:)

Ubuntu 10.04, Python 2.3.7, 2.4.6, 2.5.5, 2.6.6, 2.7.1, 3.0.1, 3.1.2 3.2b2+. . , , 2.4 2.6.

0

2.6 . , - 2.4, .

+4

Python 2.6, , , Python 2.7 .

from __future__ import ..., Python 3.x

+3

Python3.1 10.04

$ apt-cache show python3
Package: python3
Priority: optional
Section: python
Installed-Size: 76
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Matthias Klose <doko@debian.org>
Architecture: all
Source: python3-defaults
Version: 3.1.2-0ubuntu1
Depends: python3.1 (>= 3.1.2), python3-minimal (= 3.1.2-0ubuntu1)
Suggests: python3-doc (>= 3.1.2-0ubuntu1), python3-tk (>= 3.1.2-0ubuntu1), python3-profiler (>= 3.1.2-0ubuntu1)
Filename: pool/main/p/python3-defaults/python3_3.1.2-0ubuntu1_all.deb
Size: 11096
MD5sum: 81f3f3bf790f5d7756b76c8d92fcea86
SHA1: 32e12dc7f9500456e063f22645c1cfed76b8845c
SHA256: 0f541352ace2fcf1929a93320ffbe2f1de4e1d140bbe70a7c5a709403b73341c
Description: An interactive high-level object-oriented language (default python3 version)
 Python, the high-level, interactive object oriented language,
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.
 .
 This package is a dependency package, which depends on Debian default
 Python version (currently v3.1).
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 3y
0
source

All Articles