How to Install Python on windows?

By Amit Kumar1 | WayOfCoding | 19 Jul 2021


Hey There!

This post will cover Python Installation.

So let's get right to it.

 

Python Installation:

  • 1. Go to the Python Download link, here.Available Python Versions

If you want the latest version of Python then click on 1. If you want the specific previous version the check section 2 of the image and download the specific version.

  • Once the download is complete then open the downloaded .exe file.5a4a741137dad4e5093ba7439b9e66eff44c9b50031e007ba54b75c22b41ba83.png

 

  • You will be taken to the setup page.setup page

Tick the Add Python to PATH to update the PATH Environment variable automatically so that you don't have to add it manually. Then click on Install Now and your installation will start.

  • Once the setup is complete you will be prompted with the below window.setup complete

Here you can see that you are prompted an option to Disable the path length limit. Windows(which doesn't happen in mac or Linux ) don't allow path size to be MAX_PATH >260 chars which sometimes causes errors while installing python packages when python is installed in the user's AppData directory as the path size increase the threshold. This option will disable the path limit which will help resolve MAX_PATH issue. But be cautious that removing this limit devoids your system's backward compatibility with previous versions of windows software. Another way of tackling this MAX_PATH issue is to create a shorter directory if you don't want to disable this option.

  • Python is installed in your system Click on Close.
  • To Verify if Python is installed in your system or not, press `Windows key + R` and type cmd and Enter. in the command window type `python` you will be prompted with Python Shell, here you can see your python version. cmd
  • Type quit() to exit Python shell or close the window.

Finally, Python is Installed in your system and you can start writing and learning to code.

How do you rate this article?

5


Amit Kumar1
Amit Kumar1

Hi All, My name is Amit, I'm a software engineering, who loves to solve programming scenarios and automate stuff using Python/Shell Scripting or any other language :P (pun of being a polyglot). Join Publish0x. https://www.publish0x.com?a=w9aAP28Pev


WayOfCoding
WayOfCoding

Let's learn together. Donate ETH here: 0x21DfffFB92B42721FC87c9b70773306023dA843B

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.