Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't self-uninstall on Windows #188

Closed
vbabiy opened this issue Mar 15, 2011 · 5 comments
Closed

Can't self-uninstall on Windows #188

vbabiy opened this issue Mar 15, 2011 · 5 comments
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior

Comments

@vbabiy
Copy link
Contributor

vbabiy commented Mar 15, 2011

It tries to delete the executable it is running. I think you may need to launch another process to delete it later


@vbabiy
Copy link
Contributor Author

vbabiy commented Mar 15, 2011

The same type of problem happens when you try to upgrade pip itself.

'pip install -U pip' "succeeds" in the sense that pip gets upgraded, however
/scripts/pip.exe is not upgrade and pip's setup.py raises an exception.

This is not much of an problem since pip.exe is (hopefully) the last thing to
get upgraded, but if weren't other later script-files would not get upgrade
nor installed at all.


Original Comment By: Anonymous

@ismailsunni
Copy link

So, how do we uninstall this pip?

I tried pip uninstall pip but it's failed

@qwcode
Copy link
Contributor

qwcode commented Feb 26, 2013

@pfmoore , the answer is "you can't do this on windows". period. right?

@pfmoore
Copy link
Member

pfmoore commented Feb 26, 2013

Not easily. As @vbabiy said, you might be able to do this by running a new process to delete the final files, or use the "delete on next reboot" APIs. But it's very messy and not really worth it.

@qwcode qwcode closed this as completed Feb 26, 2013
@qwcode
Copy link
Contributor

qwcode commented Feb 26, 2013

I'm thinking we could improve "get-pip" to handle this case.

smspillaz added a commit to smspillaz/polysquare-ci-scripts that referenced this issue Aug 8, 2015
This is necessary in order to replace pip.exe on Windows
(see pypa/pip#188)
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants