-
Notifications
You must be signed in to change notification settings - Fork 422
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
pipx unable to create venv when using Python from Microsoft Store #1164
Comments
Here's what I've been unable to determine so far:
My main hypothesis at this point is:
Assuming my theory checks out, I suspect the cleanest fix would be to make sure pipx runs the venv |
Unsurprisingly, things work just fine if I manually point pipx to the real location:
At least that's one workaround for affected users. |
This helps catch issues such as pypa#1164.
This helps catch issues such as pypa#1164.
This helps catch issues such as pypa#1164.
This helps catch issues such as pypa#1164.
This helps catch issues such as pypa#1164.
This helps catch issues such as pypa#1164.
This gets rid of the following warning when using the Microsoft Store version of Python: The system cannot find the path specified. Failed to delete C:\Users\etien\AppData\Local\pipx\pipx\trash. You may need to delete it manually. See also pypa#1164
This gets rid of the following warning when using the Microsoft Store version of Python: The system cannot find the path specified. Failed to delete C:\Users\etien\AppData\Local\pipx\pipx\trash. You may need to delete it manually. See also pypa#1164
Sent a proposed fix in #1168. |
This gets rid of the following warning when using the Microsoft Store version of Python: The system cannot find the path specified. Failed to delete C:\Users\etien\AppData\Local\pipx\pipx\trash. You may need to delete it manually. See also pypa#1164
This gets rid of the following warning when using the Microsoft Store version of Python: The system cannot find the path specified. Failed to delete C:\Users\etien\AppData\Local\pipx\pipx\trash. You may need to delete it manually. See also pypa#1164
This gets rid of the following warning when using the Microsoft Store version of Python: The system cannot find the path specified. Failed to delete C:\Users\etien\AppData\Local\pipx\pipx\trash. You may need to delete it manually. See also pypa#1164
This gets rid of the following warning when using the Microsoft Store version of Python: The system cannot find the path specified. Failed to delete C:\Users\etien\AppData\Local\pipx\pipx\trash. You may need to delete it manually. See also pypa#1164
On my Windows 11 23H2 (22631.2661) system, with Python 3.12.1 installed from the Microsoft Store, and following the pipx Windows installation instructions, this is what happens when I try to install anything:
C:\Users\etien\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\pipx\pipx\Logs\cmd_2023-12-23_10.50.12.log
(note the strange path that doesn't match the above, more on that below) contains:C:\Users\etien\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\pipx\pipx\Logs\cmd_2023-12-23_15.04.13_pip_errors.log
contains:Additional information:
The output of this command is especially intruiguing:
And indeed, on my system
C:\Users\etien\AppData\Local\pipx\pipx\venvs\pycowsay
doesn't exist at all, butC:\Users\etien\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\pipx\pipx\venvs\pycowsay
does (and containspyvenv.cfg
). It looks like this is because of path redirection. It is not clear to me if this is what's causing the problem of if it's just a red herring.The text was updated successfully, but these errors were encountered: