How to uninstall Python3.7 in Windows using cmd ?
Mike Dewhirst
miked at dewhirst.com.au
Sun Mar 29 20:41:02 EDT 2020
On 29/03/2020 10:24 pm, Terry Reedy wrote:
> On 3/29/2020 12:17 AM, Mike Dewhirst wrote:
>> On 29/03/2020 5:06 am, Terry Reedy wrote:
>>> On 3/27/2020 8:07 AM, deepalee khare wrote:
>>>
>>>> How to Uninstall Python3.7.3 using cmd ? i tried using cmd: Msiexec
>>>> /uninstall C:\Python37\python.exe But it gives me below error: enter
>>>> image description here
>>>
>>> Python is not currently installed with msi, hence cannot use it to
>>> uninstall. Images and attachments are not allowed.
>>>
>>>
>>
>> In that case install that same version of Python to the same location
>> using msi
>
> Just how do you propose that one do that?
I would first determine whether it is the 32 or 64 bit version which is
installed. I would then visit www.python.org and download the exact same
python executable installer. Don't know what msi is but it doesn't
matter. I think it just means microsoft installer.
If you launch the installer in Windows and choose the custom install it
will let you select the location. You should choose C:\Python37 as you
have already noted.
It is possible/probable that the installer will detect your existing
Python 3.7.x and offer to repair it. Some parts of Python may have been
omitted from the original installation. With a custom installation the
msi installer lets you tick boxes to decide which components to install.
To cover the uninstallation bases I would tick them all and proceed to
completion.
In (my) theory that will do the install and hopefully let you do an
ordinary Windows uninstall.
I assume (?) the original installation put the usual Python components
including dll libraries in the conventional places for Windows and the
python.org executable installer will follow suit.
The uninstallation probably won't delete the C:\Python37 directory but
you can do that yourself.
If all the above fails, you can delete C:\Python37 and all its content
as a precursor and then go through the installation again and try
uninstalling again.
If that fails just delete C:\Python37 and its contents and hope for the
best.
Good luck
Mike
>
> - then remove it.
>
> To clarify, the pydev/python.org installer does not use msi. I don't
> know that anyone else does. And if someone did, why do you think it
> would also uninstall the current installation?
>
More information about the Python-list
mailing list