Install Python on Linux
Most Linux distributions come with Python installed. To check if your Linux distribution contains Python, open the shell and run the following command:
You should get an output like this one, which displays the version of Python installed:
programmer@ubuntu:~$ python --version Python 2.7.6
If you don’t have Python installed or would like to install a newer version, run the following command (works in Debian-based distributions, such as Ubuntu):
sudo apt-get install python3
Follow the instructions to install Python.
To install Python in RPM-based distributions (e.g. SUSE) use the tools for software management included in those distributions. For example, in SUSE, you would use the YAST tool.