-
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
Unable to find resource t64.exe
in pip._vendor.distlib
#11349
Comments
Same problem. |
@vsajip could this be due to a change in distlib 0.3.5 ? |
Perhaps, but it doesn't seem likely. The resource |
@Yuvaraja28 could you check if the file |
I can confirm it is also present in the pip 22.2.x wheels. |
Just Download Latest Python from python.org thats the only Fix for this Issue |
The only difference is Python upgraded to |
I think this needs someone to reproduce the issue reliably, perhaps with a modified
That last bit uses the same logic as
|
t64.exe
in pip._vendor.distlib
And, we've reproduced this today with @aaravpandya at PyCon US! We started with a conda-provided Python, and ran: This is on Windows 11 (22H2 25330.1000, prerelease 230323-1609) -- it's an Insider Preview release (I don't expect this to matter, but who knows! 🤷🏽). |
(Aarav will post the reproducer details) |
Thanks Pradyun. Here's how one can reproduce this issue. I followed the docs here - link. I had to change some commands to get it working for my setup as I had anaconda setup.
The last command will give the following error -
Some information about my system - OSWindows 11 (22H2 25330.1000, prerelease 230323-1609) Python Version3.9.13 Pip Version (after upgrade)23.1.1 A bypass (not solution)If you run the same command again, it works -
Packages installed in base conda environment -
EDIT - note I have replaced my username with %USER% for privacy |
Can you repeat the failing run invoked with |
Hi there! It's 15/07/2023 and I think this issue has resurfaced again!
When I tried to upgrade pip via
But the required
Now that I have uninstalled and reinstalled setuptools, I run into a new error. I think this upgrade attempt has corrupted pip on my machine.
But the required module is present in this directory! I'm not an expert in Python's inner workings. I think this has to do something with the installer looking for files in wrong directories! Is it possible that the script may be searching
I'd like to know what is happening here, thank you! (P.S I cannot afford a reinstall of Python and all my deps). I was hoping to find a solution in this thread, but it left me stuck in the middle of nowhere. |
@anoban To recover, you can delete the following directories:
And then fetch and run get-pip.py as described in https://pip.pypa.io/en/stable/installation/#get-pip-py. |
@pradyunsg Thank you! That solved the problem. Appreciate the help :) |
This fixed the problem for me under Windows 11, running Python 3.11.4, from PowerShell: python -m pip uninstall pip setuptools |
Reproduced the issue as well here |
this one worked as well! thanks <3 |
I'm currently getting this error trying to install the pip repo in editable mode on Python 3.12:
Here's the full debug output: https://gist.github.com/notatallshaw/f6602fef5893f29da8493518ece681d0 I've not tried any of the recovery steps yet. |
I can still reproduce the steps with Python 3.12.3, in fact it seems I am no longer able to test pip on Windows, as none of the recovery steps seem to work for me either. |
These steps really did it for me, thanks! |
This should be resolved starting pip 24.1b1 with #12669. |
Description
I'm using
Python 3.10.5
and havingPIP 22.2.1
and while updating PIP to latest Version 22.2.2 ValueError raises and its not updating PIPExpected behavior
No response
pip version
22.2.1
Python version
3.10.5
OS
Windows 10
How to Reproduce
python -m pip install --upgrade pip
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: