-
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
Errors under Windows with installation prefix starting with \\?\ #11188
Comments
I did a preliminary investigation:
I don't know why |
Looks like we could fix this by normalising the path? i.e. |
And one other error
The problem is here: pip/src/pip/_internal/utils/unpacking.py Line 180 in 11b0654
Neither pip not Python normalize the second argument (path coming from tar). |
@uranusjr, are you asking me? |
I don't see this expectation expressed anywhere in Python's |
To be honest, the main reason pip doesn't use pathlib throughout is purely because much of pip's code predates pathlib (and almost all of it was written before we stopped supporting versions of Python that didn't have pathlib). If anyone wanted to submit a series of PRs moving to pathlib, I'm fairly sure they would be accepted. But in the meantime, we have to deal with what we have... And actually, it appears that pathlib is no better here:
Given the behaviour here, I'd start by raising one or more issues with CPython, asking the following questions:
Depending on the answers to these questions, we can work out a way forward here. Looking at using But we could probably get away with using |
🆗 Got it
Looks that you missed a question mark. |
Doh. Thanks for catching that 🤦 It does indeed work for me then. So scrub point 1, pathlib works fine. |
what the hell did you do to get that prefix, it (probably from where i remember) means windows marked it as a suspicious file |
It is called a UNC path, nothing special. |
Description
Error when
pip install
is run with--prefix
starting with\\?\
(for example, a directory on letter-less volume in #10597, but not limited to).pipenv install -e .
calls pip with this option, so this issue hinders the use of pipenv.Expected behavior
Successful installation
pip version
22.1.2
Python version
3.10
OS
Windows 10
How to Reproduce
pip install --ignore-installed --prefix \\?\%TEMP% setuptools
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: