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.

I'm completely new to Ubuntu (and any OS outside of Windows). I would like to use my newly formatted and installed Ubuntu desktop to code in Python. The problem is, I don't know how to install the version of Python I would like to use (>= 3.2).

I am running a 32 bit 12.04.2 LTS install and I currently have Python-3.2.4.tgz sitting in my downloads folder but I do not know where to go from here, please help.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Simply type the following in the terminal:

sudo apt-get install python3

After you typed in your system password, it installs python 3 and you then have two versions of Python installed: version 2.7 and 3.2. If you now want to start a program using python3 you can simply type:

python3 myProgram.py

If I may suggest a good IDE for writing Python; use Spyder.. :)

Happy coding!

share|improve this answer
    
@kramer65 Thankyou! :) –  user157701 May 11 '13 at 10:45
    
@Takkat, I Realised it would not make use of my downloaded package immediately, but I only wanted a 3.2 family Python installation to run alongside Pygame 1.9.1. Whilst 3.2.3 is not most updated in the 3.2 family, it should suit my simple needs effectively. Thankyou for your concern. –  user157701 May 11 '13 at 10:49
    
@user157701: that is perfectly fine then - just wanted to point this out. You may want to upvote/accept the above answer in case it helped you :) –  Takkat May 11 '13 at 10:53
add comment

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.