Python Installation -How to install python

Following are the steps to install python :

Step 1: From website <a href="https://www.python.org/downloads/" target="_blank" rel="nofollow noopener noreferrer">Download Python | Python.org</a>
Download any of the latest version available.

upload_2015-8-5_16-27-37
Step 2: Set Path in Environment Variables
-Control Panel\System and Security\System\ -Click on Advance System Setting
-Click on Environment variables
-From System variables, Click on Path and append path of python

upload_2015-8-5_16-32-3

Step 3: Prepare Test script
-Open note pad
-Paste below code and save as test.py (.py is python extension)

class Sample():

print ("Welcome to Python World");


Step 4: Run the test script
-Now you can run your test scripts using command prompt. Place your script in D drive
-Open command prompt
Type below command python test.py

upload_2015-8-5_16-36-53

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform