Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a particular reason on why update-alternatives is not working with Python since ubuntu comes bundled with different versions?

share|improve this question

1 Answer 1

up vote 11 down vote accepted

The reason is, python versions aren't fully compatibile. If you set 3.3 version as your default, the applications made for 2.7 could not work.

share|improve this answer
7  
Exactly. Python 2 and 3 aren't considered alternatives. They're completely different things. –  Oli Apr 22 at 10:28
    
@Oli Great... except that python 2.x automatically symlinks itself to /usr/bin/python, which IMO is the wrong behavior since they aren't alternatives. –  Powerlord May 27 at 18:29
    
@Powerlord, No, it's not a wrong behaviour, as python is intended to always mean Python 2 and Python 3 expected to always be referred to as python3. I saw a note about this somewhere in a PEP or in Python mailing list (can't remember exactly what's the source). –  Hibou57 Aug 21 at 10:29
    
@Hibou57 I think that in one or two years, they'll change meaning and python will be symbolic link to python3. That is in Arch Linux. –  enedil Aug 21 at 10:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.