Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 55444  / 1 Year ago, sat, february 4, 2023, 4:48:57

The description here says that 12.04 ships with python 3.2.3 as well. What command do I run to get this? Running python -v or python2 -V or python2.7 -V all give me the same result 2.7.3. There are no other commands with the name python available. Do I have to install it?





Note: I am not interested in setting python 3.2 as my default interpreter, I just want to know that if it ships, what command runs it.


More From » 12.04

 Answers
1

Whether or not Python 3 is installed after installation or not depends mostly on the flavour and version. If a package depends on Python 3 it will be installed.



The best indication on whether it will come with the standard desktop installation is by checking the manifest files for the installation images.



Manifest files:





Both do not contain anything with python3. However,





does have lots of python3 packages.



This means that for 12.04 you'll probably need to install it afterwards: python3 Install python3. Use the link to install using the Software Centre or run:



sudo apt-get install python3


Then invoke the new Python 3 shell using



python3


Note that Python 2.7 will still be present and will stay the default.


[#38573] Sunday, February 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imberst

Total Points: 370
Total Questions: 107
Total Answers: 123

Location: French Polynesia
Member since Tue, Jul 7, 2020
4 Years ago
imberst questions
;