ON Linux server they provide Python 2.7 version by default . But This version is very older. And when developer write code in latest python like python 3.7 that code doesn’t work on python 2.7 . Python version are different in there nature . And Developer first choice is also for python 3 .Python is easy language ,easy to understand . Now what happening when we installing python 3 on linux server there are lot of dependency to install on server then python will work . So Lets start one by one .
Note:- I am showing commands for centos system so you can command check for other linux (apt-get ).
yum -y groupinstall development
yum -y install zlib-devel
aptitude -y install gcc make zlib1g-dev
tar xJf Python-3.6.3.tar.xz
Install Python IDLE in Linux
apt-get install idle [On Debian]
yum install python-tools [On CentOS]
Type the following command to start the Python IDLE.
Most-Important *:- Sometime linux server need some dependency on there end so check first then install .