11

Any way i can update to python 3.x? The version I am using is 2.7.11+ When I usesudo apt-get install python it says it's already at the latest version.

0
20

Python 3 is a different package.

Install it using:

sudo apt-get install python3

The run it using:

python3
5
  • 2
    I would just like to add that Python 2 and 3 are different syntax too. If you know Python2 you should be able to learn python3 a lot easier though. Jun 12 '16 at 18:52
  • 6
    Also note that pip also has a pip3 version for Python 3.x
    – Kroltan
    Jun 12 '16 at 19:24
  • 2
    @Inforcer25 autocorrect?
    – robert
    Jun 12 '16 at 23:30
  • @robert I think it's just a typo. s and d are adjacent.
    – Bakuriu
    Jun 13 '16 at 7:06
  • 2
    I tried this, currently I have python3.5 in my ubuntu 16.04. I did sudo apt-get install python3 but it is not updated to 3.6. im getting udo apt-get install python3``0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.
    – pyd
    Feb 14 '18 at 6:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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