Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2697  / 2 Years ago, wed, december 1, 2021, 2:24:35

I am new to ubuntu and I wanted to shift my version to Python 3.4.1.



So I ran the command:



$ sudo update-alternatives --config python
update-alternatives: error: no alternatives for python


But then I try to run command:



$ sudo apt-get install python3.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.


I don't know how to switch between the versions. Please help.


More From » python

 Answers
7

python 2.7 and python 3.4 is already preinstalled on your Ubuntu 14.04.




  • Run python3 command on terminal to get python3 interpreter.


  • Run python command on terminal to get python2 interpreter.



[#24446] Wednesday, December 1, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
humbire

Total Points: 55
Total Questions: 93
Total Answers: 113

Location: Oman
Member since Fri, Dec 23, 2022
1 Year ago
humbire questions
Thu, May 13, 21, 02:28, 3 Years ago
Sun, Oct 24, 21, 14:23, 3 Years ago
Wed, May 17, 23, 22:16, 1 Year ago
;