Windows offline installer does not properly detect latest Python. Sorting installed versions fails with 3.8 vs. 3.12
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 669
- Forks
- 236
- Avg merge
- 1m
- Merged PRs (30d)
- 4
Description
Using 3.47.0
Installer finds two Python installations in HKCU
- 3.8
- 3.12
...but installation script install.ps1 sorts these which places 3.8 above 3.12 and is therefore chosen as the Python version to use. I renamed the key in registry to 3.08 and it properly detects 3.12 now when sorted (by the install script) but this seems like work-around rather than solution
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Windows installer’s install.ps1, where the Python installations found in HKCU are sorted. Reproduce the 3.8 versus 3.12 case and verify that the installer selects Python 3.12 rather than 3.8 after the sorting behavior is corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100