Python Environment Setup

How to Install Python

You can install Python on any operating system such as Windows, Mac OS X, Linux/Unix and others.

To install the Python on your operating system, go to official website of python

Click the link to Download Python: https://www.python.org/downloads/Download the latest version of Python 3 (Python 3.8.2)

After downloading the python installer file in your pc, Run it and it will bring you to python install wizard. Make sure that you have selected the “Add Python 3.8 to path”. After selecting the check box click on install now.

To check whether you have installed python correctly and to check if the path has been created for python on your PC, run Command Prompt(CMD) in your system and type

python --version

If It shows the version of python correctly, python has been installed successfully and the path is also created successfully. If it show any error follow the steps to set path manually,

Step 1: Right-clicking This PC and going to Properties or press Win+R to open Run dialog box and type sysdm.cpl and hit enter, this will open system properties.

Step 2: Clicking on the Advanced tab settings in the system properties dialog box.

Step 3: Clicking on the Environment Variables button at the bottom right in advanced tab.

Step 4: When you click on Environment variable, this will open User and System variables dialog box, in User variable, click on New button.

Step 5: In variable name type: python and in variable path: you want to paste the python’s installation path, to find python’s installation path go to,

C:\Users\(username)\AppData\Local\Programs\Python\Python38

Paste the copied path.

Step 6: In System variable search for Path, click on it and click edit button. When you press Edit button a new window will open.

Step 7: Click on new button and paste the path with addition of “\Scripts” at the end, now the path will look like

C:\Users\(username)\AppData\Local\Programs\Python\Python38\Scripts\

Step 8: Click the ok button on all the opened windows.

To verify that we have set the path correctly, open new Command Prompt(CMD) and type python –version.

More Reading

Post navigation

3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *