Description
Bug report
See pypa/pip#11982 for background. Basically, pip added a mechanism for users to configure the "base" (installation-wide) settings. This mechanism picks up a pip.ini
file that is shipped with the Windows Store installation of Python. The problem is that the shipped config file sets the --user
option globally, meaning that it gets picked up in virtual environments as well, which causes pip to fail.
IMO, the pip feature needs reconsidering, to allow for the possibility of something like this, but it's also true that we advise against setting --user
in configuration files. So I think the Windows Store distribution should consider other mechanisms for handling whatever issue prompted the addition of this config. If that requires changes from pip's side, please reach out - we already have a check if site-packages is writeable and we fall back to --user
if it isn't, so we could definitely consider extending that check.