PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

This command adds Python 3 as an alternative for the python command

Go down

This command adds Python 3 as an alternative for the python command Empty This command adds Python 3 as an alternative for the python command

Post by jamied_uk 31st May 2023, 10:59

Code:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1


This command adds Python 3 as an alternative for the python command.

Set Python 3 as the default by running the following command:


Code:
sudo update-alternatives --set python /usr/bin/python3


This command sets the default Python version to Python 3.

Verify that Python 3 is now the default by running

Code:
python --version
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum