Skip to content

Conversation

@MrEddX
Copy link

@MrEddX MrEddX commented Feb 4, 2026

Fix: Windows - Activation of Virtual Environment Command

Fix: Windows - Activation of Virtual Environment Command

Signed-off-by: MrEddX <[email protected]>
@alexvoss
Copy link
Member

alexvoss commented Feb 4, 2026

The command works for me under both Powershell and cmd.exe, while the .bat version does not work under Powershell.

image image

The script runs but fails to modify the environment, no changes to PATH, not changed prompt to indicate I am in a virtual environment. I am speculating a bit here but I think Powershell launches a cmd.exe to run a .bat script? The changes to the environment would be made there and then it exits.

If you have any information about conditions under which the activation of the venv does not work please open an issue. I am closing the PR because appending .bat is not a solution.

@alexvoss alexvoss closed this Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants