Skip to content

Unable to create Virtual Environment with MS Store Python #5331

Description

@bradfordgp

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:

Installing Poetry (1.1.13)
Installing Poetry (1.1.13): Creating environment
Actual environment location may have moved due to redirects, links or junctions.
  Requested location: "C:\Users\321gp\AppData\Roaming\pypoetry\venv\Scripts\python.exe"
  Actual location:    "C:\Users\321gp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\Roaming\pypoetry\venv\Scripts\python.exe"
Actual environment location may have moved due to redirects, links or junctions.
  Requested location: "C:\Users\321gp\AppData\Roaming\pypoetry\venv\Scripts\python.exe"
  Actual location:    "C:\Users\321gp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\Roaming\pypoetry\venv\Scripts\python.exe"
Installing Poetry (1.1.13): An error occurred. Removing partial environment.
Poetry installation failed.
See C:\Users\321gp\poetry-installer-error-2yr835li.log for error logs.

Error log contains the following:

No pyvenv.cfg file

Traceback:

  File "<stdin>", line 879, in main
  File "<stdin>", line 515, in run
  File "<stdin>", line 536, in install
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1008.0_x64__qbz5n2kfra8p0\lib\contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "<stdin>", line 608, in make_env
  File "<stdin>", line 594, in make_env
  File "<stdin>", line 326, in make
  File "<stdin>", line 349, in pip
  File "<stdin>", line 346, in python
  File "<stdin>", line 339, in run

Checking the links listed, C:\Users\... \Roaming\pypoetry\venv\ does not exist.

Suggestions on how to correct this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/venvRelated to virtualenv managementarea/windowsFor Windows-specific issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions