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
pip upgrade fails due to permissions error, then claims it didn't fail #6893
Comments
I believe this must be fixed after #6864 merge. |
So there are two issues here:
Given that pip itself created the temp directory, there's two situations that can cause this:
so we should be covered here.
On Windows, in general, you cannot delete files that are in use by other applications (even the same application!). pip.exe was being used by the pip process itself so it could not be deleted.
The I hope that helps, please let me know if anything is unclear. |
Hi @JordonMMG. That looks like a different issue. You're correctly using Also I would note that it is kind of strange that pip prints a warning after you have just upgraded. If this was the first package that you've installed with If you have any other problems, please feel free to file another issue and we can help! |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Environment
Description
Upgrading pip reports that it fails due to a permissions error, then re-running the upgrade reports that it was already installed.
Expected behavior
Either fail and complain or install and don't complain.
How to Reproduce
pip install --upgrade pip
. See error.pip install --upgrade pip
a second time. Claims it was already installed.Output
First upgrade fails:
Second upgrade claims it didn't fail the first time:
The site-packages folder does not contain an exe called
pip.exe
but does contain a folder calledpip
, and another folder calledpip-19.2.2.dist-info
This is where all the python's exe's are:
I checked the Temp folder and pip exists in it, but why would it have trouble deleting its own temp folder? I couldn't get any version info from the exe metadata, so I directly ran it in CMD and found out literally nothing, because it reports the version from a different directory, weirdly enough:
The text was updated successfully, but these errors were encountered: