Saturday, November 23, 2019

[PythonOOPTutorial] 01 How to Setup Python

This is the first article of the Python OOP Tutorials.

First you can check whether you have already installed python on your computer by executing following command.

"python --version"


If python version is displayed, then it says you have already installed Python on your computer. Otherwise you can follow below steps to install python on your computer.

You can download Python setup from Python.org. From there it is always better to download the latest version.


If you want to download a previous version you can choose those from the "Downloads" section. (Python downloads page)

There are different download types and you can select what is most suitable based on your operating system and requirement. What I prefer is exe version.

Then run the downloaded exe file. Do not forget to check the "Add to path" checkbox. Otherwise you will have to add Python for the PATH manually. 

After successful installation you can run the previous command again and check for the current Python version check by the command "python --version". It should work now.To make sure Python is working fine, you can download below file and run it.Sample file: https://drive.google.com/open?id=1vHIAmN7cpfqjJNESmY-23ABSE9rm5THZ- Open command prompt.
- Navigate to the file saved location.
- Run "py TestPython.py"
Then you will get output like below.
Now Python is working fine in your computer. Lets continue the learning process.
Cheers...!!


1 comment: