python / python/cpython

Python uninstalls wrong instance if it isn't installed in C:/...

Open
#100,199 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OS-windows type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

Bug report

I had Python 3.9.08 installed for all users in C:\Program Files\Python39 (aka the one in C)
It was in path and I was mainly using it through vs code

I had to install py 3.9.13 for a spesific module
i installd it again for all users and pip in X:\Program Files\Python39 (aka the one in x)

In path the x version was higher then the c version an so replaced the system version witch i dont mint
now tho the problem.

Wenn i want to use pip is gives me this error
grafik

So i tried to reinstall the x version and i use the uninstaller via the controll panel (i verifi iit was the correct one via the date)
but i wonderd why i would dnt disapier after i ran it.
But i discoverd that i didn't uninstall no matter how many time i run it. So i
I checked with file explorer an every thing was still there
grafik

so i cheched if the c version was still there
!!!!!!! IT F*** UNINSTALLD THE C VERSION !!!!!!!
idk how but this is bad....

Your environment

Edition Windows 10 Home
Version 22H2
Installed on ‎06.‎09.‎2020
OS build 19045.2311
Experience Windows Feature Experience Pack 120.2212.4190.0

Im not how i installed the c version but i ~the same as the x version exept for the path

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report on Windows 10 with two all-users Python installations in C:\Program Files and X:\Program Files, then use Control Panel to uninstall the X: instance. Inspect the installer and uninstall behavior to determine why the C: installation is removed; done means the selected instance is removed while the other remains.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.