[issue45337] Create venv with pip fails when target dir is under userappdata using Microsoft Store python

Steve Dower report at bugs.python.org
Thu Sep 30 17:01:55 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

Thanks Adam.

This analysis is correct, and I think there are two parts to this.

First, we probably need to add an os.path.realpath(path_to_venv) before we try and launch the environment. We *could* limit this to when it's under AppData, but I think limiting it to Windows is enough.

Second, if the realpath generated a different path, we should warn the caller. That wouldn't have helped in this (programmatic) case, but at least if someone is looking at the output they'll get an important hint.

(The docs describing this behaviour are at https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes )

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45337>
_______________________________________


More information about the Python-bugs-list mailing list