Errors under Windows with installation prefix starting with \\?\
See original GitHub issueDescription
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
Collecting setuptools
Using cached setuptools-62.4.0-py3-none-any.whl (1.2 MB)
Installing collected packages: setuptools
ERROR: Could not install packages due to an OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\C:\\Users\\<user>\\AppData\\Local\\Temp/Lib'
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Windows Installer Error Messages (for Developers)
Message codes, message text, and remarks for Windows Installer error messages. Errors include ship errors, internal errors, and errors ...
Read more >NET Framework 3.5 installation errors - Windows Client
The set of installation files is corrupted, incomplete, or invalid for the version of Windows that you are running.
Read more >Windows 10 upgrade resolution procedures - Microsoft Learn
This article provides some common causes and solutions that are associated with specific upgrade error codes. If a Windows 10 upgrade fails, ...
Read more >How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, ... Could not start the Windows Installer service on Local Computer. Error...
Read more >Troubleshooting packaging, deployment, and query of ...
Error code Value Description and possible causes
E_INVALIDARG 0x80070057
ERROR_INSTALL_INVALID_ PACKAGE 0x80073CF2 The package data isn't valid.
ERROR_INSTALL_NETWORK_ FAILURE 0x80073CF5 The package can't be downloaded.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Doh. Thanks for catching that 🤦 It does indeed work for me then. So scrub point 1, pathlib works fine.
It is called a UNC path, nothing special.