Set Default Python Version in Ubuntu(Linux)

preview_player
Показать описание
How to Setup the default Python version syste wide

Author: Shivam Sharma
Рекомендации по теме
Комментарии
Автор

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2

wuloe
Автор

Hello, when I enter python or python3 it shows:
"Python 3.10.7 (main, Sep 7 2022, 15:22:19) [GCC 9.4.0] on linux" << note the "main" word.

Now when I enter python2 then it shows:
"Python 2.7.18 (default, Jul 1 2022, 12:27:04)" << note the "default" world.

So, how do I make my python3 the default? Not the main?

jonecir
Автор

Hi, sorry what tutorial did you follow to install python 3.7.3?

pamelavillarroel
Автор

from where your get visual studio code

skagnihotri
welcome to shbcf.ru