Skip to content

(🐞) venv info not showing in powershell and cmd prompt #4996

@KotlinIsland

Description

@KotlinIsland
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Windows 10
  • Poetry version: Poetry (version 1.2.0a2) / Poetry version 1.1.12
  • Link of a Gist with the contents of your pyproject.toml file: N/A

Issue

I've been messing around with trying to get the env details to appear in the shell prompt, but barely any shells seems to want to show and I can't figure out why.

PS C:\Users\amongus\temp> poetry shell
Spawning shell within C:\Users\amongus\AppData\Local\pypoetry\Cache\virtualenvs\test-qEduk6Cs-py3.11
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\amongus\temp> exit
PS C:\Users\amongus\temp> C:\Users\amongus\AppData\Local\pypoetry\Cache\virtualenvs\test-qEduk6Cs-py3.11\Scripts\activate.ps1
(test-qEduk6Cs-py3.11) PS C:\Users\amongus\temp>
C:\Users\amongus\temp>poetry shell
Spawning shell within C:\Users\amongus\AppData\Local\pypoetry\Cache\virtualenvs\test-qEduk6Cs-py3.11
Microsoft Windows [Version 10.0.19044.1415]
(c) Microsoft Corporation. All rights reserved.

C:\Users\amongus\temp>exit
C:\Users\amongus\temp>C:\Users\amongus\AppData\Local\pypoetry\Cache\virtualenvs\test-qEduk6Cs-py3.11\Scripts\activate

(test-qEduk6Cs-py3.11) C:\Users\amongus\temp>

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions