This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AdamYoblick
Recipients AdamYoblick, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-09-30.20:39:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Repro steps:

1. Install Python 3.9 from the Microsoft Store
2. Try to create a virtual environment under the userappdata folder, using a command line similar to the following:

"C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\python3.9.exe" -m venv "C:\Users\advolker\AppData\Local\Microsoft\CookiecutterTools\env"

3. Observe the following error:

Error: Command '['C:\\Users\\advolker\\AppData\\Local\\Microsoft\\CookiecutterTools\\env\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 106.

Note that creating a venv without pip DOES work:

"C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\python3.9.exe" -m venv "C:\Users\advolker\AppData\Local\Microsoft\CookiecutterTools\env" --without-pip

BUT the venv is NOT at the specified location. This is because the Windows Store app creates a redirect when creating the venv, and that redirect is only visible from within the python executable.

This means that python doesn't respect the redirect when trying to install pip into the newly created venv.
Date User Action Args
2021-09-30 20:39:58AdamYoblicksetrecipients: + AdamYoblick, paul.moore, tim.golden, zach.ware, steve.dower
2021-09-30 20:39:58AdamYoblicksetmessageid: <>
2021-09-30 20:39:58AdamYoblicklinkissue45337 messages
2021-09-30 20:39:58AdamYoblickcreate