Python 3.2.3

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
webmaster
Level 1
Level 1
Posts: 1
Joined: Thu Sep 27, 2012 12:04 am

Python 3.2.3

Post by webmaster »

Greetings,

First time Linux user. Installed Maya. Using the OS as a desktop user account type. I have set my system to only install level 1 & level 2 software updates.

I have currently enrolled to learn Python programming language. We are advised to use the current production version Python 3.2.3. I opened the Terminal and under /usr/bin, Python 2.7.3 is listed as the default. I did a search in Software Manager using Python 3.2.3 and there were 0 results returned. Instead, I did a search using Python 3.2 and I get few results. I see idle-python 3.2 (idle for python (v3.2) using tkinter) and also python3.2 (interactive high-level object-oriented language version 3.2).

My question is, if I install Python3.2 does it also install idle-python 3.2 or do I need to select both the packages to be installed? Also, is version 3.2 same as version 3.2.3?

Thank you

User avatar
nunol
Level 9
Level 9
Posts: 2636
Joined: Sun Mar 06, 2011 9:25 pm
Location: Portugal

Re: Python 3.2.3

Post by nunol »

Mint 13 has Python 2 by default but Python 3 is installable. To install Python 3 run:

Code: Select all

sudo apt-get install python3
To run Python 3 run

Code: Select all

python3
Current Python 3 version in Mint 13 is 3.2.3.

dritzominous
Level 3
Level 3
Posts: 160
Joined: Sat Nov 14, 2009 12:49 am

Re: Python 3.2.3

Post by dritzominous »

And don't forget, in your shebang you'll have to use:

Code: Select all

#/usr/bin/env python3
instead of

Code: Select all

#/usr/bin/env python

leopoldbirkholm
Level 2
Level 2
Posts: 57
Joined: Sat Jun 05, 2010 4:43 am
Location: Nacka, Sweden

Re: Python 3.2.3

Post by leopoldbirkholm »

nunol wrote:Mint 13 has Python 2 by default but Python 3 is installable. To install Python 3 run:

Code: Select all

sudo apt-get install python3
To run Python 3 run

Code: Select all

python3
Current Python 3 version in Mint 13 is 3.2.3.
Thank you. That solved it for me. :D

Yeah, the output

Code: Select all

leopold@leopold-Latitude-E4300 ~ $ python3
Python 3.2.3 (default, Oct 19 2012, 19:53:57) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Yes, I will write something insightfull here :D

Two good books in your shelf:
Ubuntu for non-geeks 4:th edition and Linux in a Nutshell 6:th edition

trope
Level 4
Level 4
Posts: 253
Joined: Tue Feb 19, 2013 1:10 pm

Re: Python 3.2.3

Post by trope »

I installed Python3 with the above directions. How can I open the IDLE window with Python 3? It still opens with Python 2.7.3. I am using Mint 14.

User avatar
nunol
Level 9
Level 9
Posts: 2636
Joined: Sun Mar 06, 2011 9:25 pm
Location: Portugal

Re: Python 3.2.3

Post by nunol »

You have to install idle3 and run idle3.

binarypulsar
Level 1
Level 1
Posts: 22
Joined: Tue Aug 10, 2010 2:42 pm

Re: Python 3.2.3

Post by binarypulsar »

There is no idle3 package or software to install. I checked the software and package managers. I am running Linux mint 14 and Python3 (3.2.3) is installed but not idle. Can I get if from anywhere else?

dritzominous
Level 3
Level 3
Posts: 160
Joined: Sat Nov 14, 2009 12:49 am

Re: Python 3.2.3

Post by dritzominous »

Try:

Code: Select all

sudo apt-get install idle-python3.1

Post Reply

Return to “Newbie Questions”