How-to Install and Update Python

Contents

Installation

  • Click through Optional Features, accepting defaults

In Advanced Options, select Install for all users - this installs Python under C:\Program Files rather than C:\Users\ihs-phixflow\AppData

  • Complete the installation

PowerShell command to check Python version: (don’t forget to start a new shell after the installation has completed):

(get-command python).path

This should be installed under C:\Program Files\PythonXXX. If this is not correct, check that the installation has installed the correct PATH entries:

If not, add the home install path for Python to the PATH, e.g. C:\Program Files\Python310 (don’t think we need the ...\Scripts\ entry in the PATH)

Run the command above again to check this is now correct.

Confirm that the Python returned by default on the command line is at the correct version, in PowerShell:

python --version

Update

  • Complete the process

Check that the correct installation of Python is retuned by default at the command line, in PowerShell, and that this is at the correct version (as above for installation):

(get-command python).path python --version