Fwd: Removing python installation

Shawn Hoffman godisgovernment at gmail.com
Thu May 14 15:01:55 EDT 2020


I've somehow wound up in a situation where I have both 3.7.5 and 3.7.6
installed, and the py.exe launcher can find both of them, and defaults
to the older one:

>py -0p
Installed Pythons found by py Launcher for Windows
 -3.7-64        "C:\Program Files (x86)\Microsoft Visual
Studio\Shared\Python37_64\python.exe" *
 -3.7-64        C:\Users\shawn\AppData\Local\Programs\Python\Python37\python.exe

As you can see, the 3.7.5 install is from Visual Studio. I want to
remove this python installation, however while uninstalling it via the
VS Installer GUI appears to work, none of the files are removed. Only
the json file VS Installer uses to track the package is removed. In
the VS Installer logs, I see:

Skipping uninstall of 'CPython3.Exe.x64,version=3.7.5,chip=x64'
because it is permanent.

which seems suspicious.

Additionally, in the aforementioned json file I can see the installer
being used is "python-3.7.5-amd64.exe" from
https://go.microsoft.com/fwlink/?linkid=2109129 , with args:
"/quiet /log \"[LogFile]\" InstallAllUsers=1 CompileAll=1
Include_symbols=1 TargetDir=\"[SharedInstallDir]\\Python37_64\""

So, I've downloaded this installer and tried to run it with the
/uninstall option. Again, the uninstall appears to complete OK, but
the files are not removed.
The uninstall log is here:
https://gist.github.com/shuffle2/3c3aa736f5cf9579e6e4a4a33b1ad81d

Is there some "clean" way to remove this VS-installed 3.7.5 (and not
break the 3.7.6 install)?

Thanks,
-Shawn


More information about the Python-list mailing list