0

I have a debian 6.0.2.1 machine with default python 2.6. I compiled and installed python 2.7 on it and validated that 'python' executes 2.7 and not the older 2.6.6. Now, I am trying to install bzr (sudo apt-get install bzr) on this machine but it installs against python 2.6 and not python 2.7. I recognize this using the command 'bzr --version'.

Any idea how I can insall bzr against the newer python 2.7 which already exists in my path?

1 Answers1

0

Each Python program starts with a line

  #!/usr/bin/python

You can change that line to

  #!/usr/bin/python2.7

Alternativetly just execute the command using a Python interpreter

  python2.7 /usr/bin/bzr

However it is highly likely that bzr depends on stuff Debian should install to /usr/lib/python2.6 or /usr/lib/python2.7 and what you think you are doing is wrong and not going to work - someone should repack bzr to Debian to make it work with newer Python.