-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Document Windows 10 update solution #8450
Comments
I believe you might have a typo in the distlib path you shared in the issue ( Also may I ask if the suggested command in the error message of upgrading through Anaconda via |
I believe there was an upgrade to the vendored |
Any luck with this error
any luck with this error....suffering from same |
Try upgrading pip. |
Saw somewhere else on the web and tried following steps individually on the command prompt. It helped me move ahead. You can give it a try.
|
I also got it solved using this one. |
I’ll attribute this to a botched pip upgrade. Whatever the cause is seems to have not occured again. It would be nice if someone can submit a pull request to the documentation for future reference. |
The easiest way to upgrade pip: |
The |
I'm getting the same error upgrading pip 20.0.2 to pip-20.2.2 (and Python 3.8.2) on Win10. Tried to do some debugging. Modifying resources.py and re-running the upgrade: def find(self, resource_name):
path = self._make_path(resource_name)
path_dir = os.path.dirname(path)
print('DEBUG: ResourceFinder.find', path_dir, os.path.isdir(path_dir))
print(os.listdir(path_dir))
if not self._find(path): I get this output:
So it seems that we're probably removing the contents of distlib during the uninstall but then trying to use them when installing pip. That's likely fixed on newer version of pip? I tried these steps to clean install pip but and last step failed:
Re-running
Deleting all the pip folders in |
Thanks, that totally worked. I thought it was an Anaconda issue. |
I already had this issue before and solved it with the Update: after drawing some inspiration from @idbrii's comment, even though I didn't have an outdated
I deleted all |
Does this happen with |
Yes it also happened with the explicit command; but I've found another fix, see the update to my comment above. Sorry for the ping. |
Worked like a charm! |
@uranusjr wrote:
Thus I am reopening this issue as a docs issue. I suggest we add some notes on this within https://pip.pypa.io/en/stable/installing/#upgrading-pip . |
A quick note. Pip 21.0 is due for release in about 2 weeks (see #9282). This item is on the 21.0 milestone, so it either needs to be implemented and merged to master before then, or it will miss the release (and I'll move it to the 21.1 milestone). |
I know this problem is (relatively) old, but... Thank you!! This totally solved the problem for me. 😄 |
I have this issue with using and creating virtualenv module and also tried the solution below and now the pip doesn't work too and when I type pip in the command prompt it returns me >>
|
It was successful for me |
FYI, I ran into this same issue when attempting to upgrade pip (on Windows 10) from v
And, just like everyone else, this solution worked for me:
|
OMG this helped, thanks |
Thanks @mraxn |
Alrighty. Fun. The "protect pip from modification" logic had a bug, that should get fixed in #10560. :) |
Just used this to solve the same problem, updating from 21.1.2 to 21.3. Thanks! |
It works for me, thanks! |
Environment
Description
I am trying to upgrade pip and while rolling back the uninstall of pip, it runs into an exception telling me that it can't find t64.exe in pip._vendor.distlib. I'm presuming that it means "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip_vendor\distlib". I checked that folder and found t64.exe there.
Expected behavior
Pip should upgrade without any errors and should be able to notice t64.exe.
How to Reproduce
1.Open command prompt in admin mode
2. type 'python -m pip install --upgrade pip'
Output
The text was updated successfully, but these errors were encountered: