How to install python in window and print “Hello World”
Tags: python, beginners, programming, tutorial
Published: 2022-01-14 10:25:13

**How to install python in window and print “Hello World”**
             
                
Now, we'll download and install Python as well as an IDE called PyCharm. First of all, let's head to Python's official website and download Python:

- **Go to this link** -[ Python page ](https://www.python.org/downloads/)
- From the above link, download the latest version of Python.
- After visiting this link, click on the "Download Python" button.
- Your download will start as soon as you click the button.
![Python.org page ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5kkupxqxbdmqppdt0f5u.png)
 

After download is complete, open the downloaded file 
1	It will ask that you want to make changes to your pc. 
        Then click “Yes”.

2	Then follow the following steps
a)	Check on box to add Path and select customized as shown
![First page ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vjrly2v7ipkrkgrtl1iq.png)
 



b)	See all boxes are checked and click on “Next”
![Second Page ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/inclhfzht5tzhrd289yq.png)
 
 

c)	Check the boxes and browse the location where you want to save the python or leave the default path as it is .
Then click on install and wait for completion.
 ![Third Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/stf6j00jhbtpg87zg96a.png)
 


d)	After completion you will be shown this window 
![Last page of completion](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kx4jen3kuare54o800zq.png)
 
 

e)	Open Command Prompt and wrte python then “Enter”
You will be shown latest version of python
Then write exit() and click “Enter”.
Also write pip and check no error comes .
 ![Command Prompt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lflzor3xowbqjywnz4r4.png)
 

Note: If you are getting this or similar error - "The term 'pip' is not recognized as the name of a cmdlet, function, or operable program," watch this video here - [help-url](https://youtu.be/xdj0mGmuNjc.)
Then Install Pycharm like any other software and do not make any changes while installing it.


**Nice!** You can run the installer and install Python. Now, let's **download the Pycharm IDE**. But what is Pycharm, and why do we need it?

**Pycharm** is one of the best Integrated Development Environments (IDEs) for Python Language developed by the Czech company JetBrains. To download Pycharm, follow the steps below:

- 	Go to this link - [PyCharm link](https://www.jetbrains.com/pycharm/download/#section=windows).
- 	After visiting the above link, download the community version of Pycharm.
- 	Click on the community button to download it.
- 	Your download will start.

 ![PyCharm official page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1x8gfte28209wrhjqj0f.png)
 

Now , Open the downloaded PyCharm file and it will ask for permission , press "Yes"
Now, the following page will open 
Click to “Next”
 
![First page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tw4ajj9s18vxpd4kv6s5.png)
 

Click on “Next”, ”Next” as follows :

 ![Second page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mmyc9ubw8zt737hb960p.png)
 
![Third page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ttq4mtfq2v8kb766md6k.png)

 ![Fourth page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ct5wey0dhsephj88i4ee.png)
 
Now the installation will begin , wait till it finish . It will take little time.

![Installing process is on](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/57a57bzjhogbu393n14s.png)


Check on Run PyCharm box and click “Finish”
 ![Last page of installation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nj36t3bvxjv2r69mrknq.png)
 

Check on “Do not import settings” and click “OK”

 ![Click ok](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gne1wor6dk6gp8zqsv4s.png)


Click on New Project :

 ![Click on new project](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22cl4gypeprtzdnd4iu3.png)
 

It is important step , change the check box from “New environment using..” to “Previously configured interpreter”  . And click on three dot in last .

 
![Check on Previously configured interpreter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ez6plg1dmzvx0wp3owsj.png)
 

Select  “System Interpreter “ and confirm Interpreter path consist of python.exe. “python.exe “will  be in python folder you installed during python installation.
Then Click on “OK”
![Click on three dot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p48ym6wwrsopziho2swg.png)
 
 
Now , it will look like following .
Click on “Create”.

 ![Click on create](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5gyte43i9s96isqhg06z.png)


Now , the following page will open .
 ![PyCharm IDE will open](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0djky0m0jryjug4v35ew.png)
 

Check on following box and close .
 ![Close the box](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6myj0teiluxnhj4nywsv.png)


Press right click on pythonProject --> New --> File-->  then “Enter”.
 ![Create new python file](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qmawmpcu3tirqfk4xgyi.png)
 

Name the New file and add “.py” in last as follow :
![Add .py ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u8o92tidjvkqa3fsazcj.png)

Now, write print(“Hello World”) in main.py file as follow.
 ![Print Hello World](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/waqblgdx34y6ccbxzfe7.png)
 

Press  right click and click on “Run” as shown 
![Click on Run](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6j13pw3mi4tvpadmlarr.png)


Yeappp    , We completed our first program in Python .

 ![Finishing the task](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fpd3dblrdyklbrd0q1v.png)