- Install a new python version from https://www.python.org/downloads/windows/ the 64 bit web installer
- Make sure your PATH only contains the paths to the new version
- Delete the old python
- Restart your pc and test in cmd with
python -V
- Update global setuptools by running in cmd (sudo)
python -m pip install -U setuptools
. If this fails with a PermissionError, trypip install setuptools --upgrade --ignore-installed
.