open terminal window and issue the following commandpython --version python the result shows that the default version is howeveryou might also have version of python installed to checkenter the following commandpython --version python python is also installed it' worth running both commands before you attempt to install new version installing python on linux if you don' have python or if you want to install newer version of python you can install it in just few lines we'll use package called deadsnakeswhich makes it easy to install multiple versions of pythonsudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python these commands will install python to your system the following code will start terminal session running python python you'll also want to use this command when you configure your text editor to use python and when you run programs from the terminal python on os python is already installed on most os systemsbut you might want to use different version than the default if sofirst find out which version of python you already have installed finding the installed version open terminal windowand enter the following commandpython --version python appendix