How to install Python in Windows 10

When running the python command from Command Prompt or PowerShell without having the Python installed, Windows 10 will not display any error message. Instead it will open the Python page on Microsoft Shore.

To install Python on Microsoft 10:

1. Search Python on Microsoft Store

python microsoftstore

2. Click the Get button to download and install it.

python download

3. Python is now installed. Test it by running:

python
PS C:\Users\Max> python
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Let’s test a script – python_script.py . File content is:

#! /usr/bin/python

print ("Hello world!")

And now we run the script:

F:\>python python_script.py
Hello world!

F:\>

The python command will be available anywhere. It’s no longer needed to add the path to the Path environment variable. The installation will add the word python as an alias.

python alias

Leave a Reply