GICT knowledge base
Install Python 3.6 version in Linux
Published
In this tutorial we can check how to install Python 3.6 version in Linux Server.
Python language is created by Guido van Rossum and first released in 1991.It is a very simple programming language can be recommended for someone trying to learn computer programming for the first time. Python is a general-purpose programming and it is used for the web development, scientific and mathematical computing.
Applications of Python
1) Web Applications
You can create Web Apps using frameworks and CMS that are built on Python. Most Popular platforms for creating Web Apps are Pyramid, Plone, Django CMS and Django.
2) Creating software Prototypes
Compared to Compiled Languages like C++ and Java, Python is slow. But Python is a good language for creating prototypes.
3) Good Language to Teach Programming
It is used to teach kids and newbies because this is one of the simplest Programming languages.
Features of Python Programming
1) A simple language and very easier to learn
2) It is free of cost and open-source
3) Python is Object-oriented
4) A high-level language
Install Python 3.6 in Linux
Before the installation of Python on CentOS 7, make sure that system has all the necessary development dependencies:
# yum -y groupinstall development
# yum -y install zlib-devel
In Debian, we have to install gcc,
# aptitude -y install gcc make zlib1g-dev
To install Python 3.6, use the following commands,
# wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
# tar xJf Python-3.6.0.tar.xz
# cd Python-3.6.0
# ./configure
# make
# make install
After the completion of installation, use the following command to determine the location of main binary:
# which python3
# python3 -V
The output will be like this:
root@debian:~# which python
/usr/local/bin/python
root@debian:~# python3 -V
python 3.6.0
root@debian:~# python3
Python 3.6.0 (default, Mar 30 2017, 20:54:23
[GCC 4.9.2] on linux
To exit from the Python prompt, execute the below command:
quit()
or
exit()
Press enter
We got a message look like this.
“Congratulations! Python 3.6 is now installed on your system”.
Python IDLE in Linux
The GUI-based tool for Python is Python IDLE.
Install the package named idle on Debian by using the following command.
# apt-get install idle
Install the package named python-tools on Centos.
# yum install python-tools
Run the following command to start the Python IDLE.
# idle
If you need any further help please do reach our support department at [email protected].
Related guides
How to Restrict an SSH Key to One Command
Restrict an SSH key to one command with authorized_keys options. Protect the command and check that unwanted shell and forwarding access are denied.
Linux and CommandsSelf-Hosted Video Processing With FFmpeg: A Practical Guide
Learn how to self-host video processing on a VPS using FFmpeg, with practical commands for conversion, compression, thumbnails, and automated workflows.
Linux and CommandsHow to use nohup: Commands in Linux That Survive Terminal Closes
Keep commands running after you close the terminal. nohup examples with wget, Python, rsync, and Docker on any VPS.
Linux and CommandsHow to Fix “Too Many Open Files” Error on Linux Servers
Learn how to fix the "Too Many Open Files" error on Linux servers by understanding file descriptors, adjusting limits, and diagnosing leaks effectively.
