Python 3.2.3

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
webmaster

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
nunol
Level 9
Level 9
Posts: 2633
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.
User avatar
dritzominous
Level 3
Level 3
Posts: 161
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

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.
trope
Level 4
Level 4
Posts: 320
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: 2633
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: 25
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?
User avatar
dritzominous
Level 3
Level 3
Posts: 161
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
Locked

Return to “Beginner Questions”