1

The default version that Ubuntu carries is Python 2.7 and Python 3.4. How do I get Python 3.2?

There another question on this website where the topranked answer solves the issue for Ubuntu 13.04 with

sudo apt-add-repository ppa:fkrull/deadsnakes

If I try that I get the error:

sudo: apt-add-repository: command not found
  • possible duplicate of How to install python 3.2 in ubuntu 13.04 – Tim Jul 14 '15 at 9:32
  • Whats the output of sudo grep 'secure_path' /etc/sudoers and type -a apt-add-repository ? – heemayl Jul 14 '15 at 10:08
  • @heemayl : type -a apt-add-repository -bash: type: apt-add-repository: not found – Christian Jul 14 '15 at 11:32
  • 1
    Do sudo apt-get install software-properties-common and then check.. – heemayl Jul 14 '15 at 11:43
3

I got it to work by first installing "software-properties-common" as suggested in the comments:

sudo apt-get install software-properties-common

sudo apt-add-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.2

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.