How to Install Python and Write your first Python program
Contents:
Install JDK 8 (Java Development Environment 8).
Install Python 3.5 SDK (Software Development Kit).
Write and Run you first Python program via IDLE.
Install Pycharm Community Edition.
Install Liclipse 4.4.
Install JDK 8:
First search on google for the term “JDK 8 download”.
Then Enter Oracle JDK SE 8 Website, accept license and choose windows 64 bit exe.
Download
Run the downloaded exe file.
Click next.
Install Python 3.5:
First search on google for the term python.org, then enter website www.python.org
Choose Tab Downloads
Choose sub menu Windows
Click on sub menu Windows
Scroll Down to Python 3.5
Click on Download windows x86-64 executable installer
Wait for the completion of the download and then open the downloaded file
Click run
Don’t forget to check the box of “Add Python 3.5 to system Path”
Click install now
Search in your start menu for CMD
Open CMD and run the following command “python –version”
Now your python has been installed successfully on your computer.
Write and Run your first Python program via IDLE:
Search for IDLE in your start menu
Click on IDLE and open it
Click on file menu and choose new file
Write down the following command “print(“Hello Python from IDLE”)”;
And click CTRL+S to save the file on your hard disk at your own created folder for storing your
python program.
Click CTRL+F5 to run the program
You will see the output of your program in the IDLE shell.
Install Pycharm:
Enter website www.jetbrains.com/pycharm/
Click Download Now
Download Community Edition
Run the downloaded exe file
Click Run
Click next
Click next
Check all Check boxes
Click install
Click finish and runs pycharm
Choose Do not import settings
Accept the license
Set your UI and next
Click new project and name it Hello_Py
Then click on project interpreter and choose your python 3.5 interpreter
Right click on you project and sub menu new then Python File
Name your file hello_python, and write down this command print(“Hello Python from
PyCharm”)
Run your program, Click on the top menu run, run hello_python.py, or Run as and choose
hello_python.py
Install LiClipse 4.4:
Search for LiClipse 4.4 Download on Google and enter LiClipse Website
Click on LiClipse 4.4.0 Windows (64 bit or 32 bit according to your computer’s type)
Open the download exe file and click run
Click Next
Next
Open LiClipse (Note that LiClipse and PyCharm require JDK 8 to run the GUI because it is written
in Java).
Choose your workspace folder, and check do not ask again, then click launch.
Choose File > New > Pydev Project
Write your project name and click on Please Configure an interpreter before proceeding, then
click automatic quick configure
Right click on your project folder > New > File >, then type the name of your source file.py
Write down your command and click on the green circle in the upper toolbox > run as > Python
Run > or choose your source file.