Download the latest version from: https://www.python.org/downloads/
Ensure you are admin and run the installer, select “Customize installation”
Ensure “for all users” is checked
Press Next
Install Python for all users = checked
Add Python to environmental variables = Checked
Removing the MAX_PATH Limitation
Using regedit, set LongPathsEnabled to 1 in the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.
Updating Python to the latest version
Just download and install the latest version.
You can delete the old version using Windows App / Add or remove programs
