miércoles, febrero 04, 2009

Actualizar versión de Python en Debian

1) Instalé en este caso Python 2.5 en Debian Etch con

apt-get install python2.5

2) Modifiqué el archivo /usr/share/python/debian_defaults

Para que mi python por default sea la esta última versión.

[DEFAULT]
# the default python version
default-version = python2.5

# all supported python versions
supported-versions = python2.4, python2.5

# formerly supported python versions
old-versions = python2.3

# unsupported versions, including older versions
unsupported-versions = python2.3

3) Cambié el enlace simbólico /usr/bin/python para que apunte a python2.5

4) Por último, ejecute

pycentral updatedefault python2.4 python2.5

Listo!

server-0:/# python -V
Python 2.5

Espero sea de utilidad.

No hay comentarios.: