Pro-Tutr
How to set up or install python in your local machine - Printable Version

+- Pro-Tutr (http://protutr.com)
+-- Forum: Programming Languages (http://protutr.com/forumdisplay.php?fid=3)
+--- Forum: Python (http://protutr.com/forumdisplay.php?fid=7)
+--- Thread: How to set up or install python in your local machine (/showthread.php?tid=1013)



How to set up or install python in your local machine - Ravishankar Chavare - 04-07-2018

For Windows machine Download appropriate python version from below link
-----------------------------------------------------
For Windows Machine

-----------------------------------------------------
Legacy version 2.x
python version 3.x present and future 
You will find out all version of python here



For Linux Flaveour


[/size][/size]
Code:
This is Example tested on  CentOS/RHEL 7
change wget link according to python version
# wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
# tar xJf Python-3.6.3.tar.xz
# cd Python-3.6.3
# ./configure
# make
# make install



if you don't know the difference between legacy version and present version of python then read this tutorial here


There are following ways to use python

1.Python Shell- this is used to run command line by line.


2.IDLE GUI - lets you write more complex scripts, and run them in one go.

3.Text Editor - Here You can Use Any Text Editor like notepad,sublime,Brackets,Notepad++ or any other after writing the full code save that file as .py extension and run that python file into shell py using 

Code:
>>python filename.py