-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unable to create Virtual Environment with MS Store Python #5331
Comments
I have also run into this exact same problem with Windows 10 21H2 and Python 3.10.3 installed through the Microsoft Store. |
|
+1 |
I was having this issue too, and found not so much a fix, but a workaround: try setting the |
I have tried @s-viour's workaround without success when trying to install into |
@yodaldevoid thank you, i do have the same issue. I tried to install in the windows power shell. But still have this issue : Installing Poetry (1.1.13) details from logs : No pyvenv.cfg file Traceback: File "", line 879, in main Could you help me please ? |
This looks like it's actually an issue with MS Store Python -- if anyone can reproduce this on a Python.org distribution please post it here as soon as you can. If this is only reproducible on MS Store installs, I am not going to consider it a blocker for the next beta release as it's not a regression -- we just haven't fully fixed support for these Python installs. |
Just tested this on both MS Store Python and the Python.org manually downloaded version. I think it is the problem of the MS Store one as the latter worked with no problems. |
#5835 is a duplicate of this as the fundamental issue is virtual environments created using a MS Store Python breaking. It's interesting to see that the install succeeded but Regardless, this makes me think that this may be an issue in Poetry itself as well as the installer and it may need to be prioritized higher. |
Hello everybody, I slowly made progress here. The problem with Python installed from the MS Store is, that it is an UWP app and Microsoft redirects access to some folder into a sandbox folder. And this is not always done transparent. I've created a proof-of-concept to workaround this. The
One can test it like this:
Please note: It's a POC and the code is not as beautiful as it could be. |
this was the issue fixed thanks |
I'm still getting the same issue with the web installer with MS Store python: "Actual environment location may have moved due to redirects, links or junctions.". I think the fix is being reverted as mentioned in python-poetry/install.python-poetry.org#86. |
This shouldn't be closed, as this bug affects considerable amount of people who are downloading Python from Microsoft store. I tried using Poetry and this problems keep appearing. Please don't ignore this issue, devs. |
I am not a Poetry user, but just as an FYI, I found a similar issue in pipx that I suspect has the same root cause (i.e. Python venvs not playing well with Windows app package path redirection): pypa/pipx#1164 Maybe we can compare notes. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
OS: Windows 11
Python version: 3.10.3
Initial poetry install via Powershell command:
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
Had some problems with initial install, so ran uninstall with no problems. However, on attempting to reinstall, got the following message:
Error log contains the following:
Checking the links listed,
C:\Users\... \Roaming\pypoetry\venv\
does not exist.Suggestions on how to correct this?
The text was updated successfully, but these errors were encountered: