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 deactivate virtualenv while using Powershell in Windows Terminal #1756
Comments
Did you try if the problem persists with other terminals? |
The report shows the creation of the virtual environment, but doesn't show how to reproduce the issue. I have confirmed on my PC that I can create, activate and deactivate a virtualenv on Windows Terminal:
If you can provide instructions on how to reproduce the issue, I'll try them out and confirm if I can get the same problem. |
It is happening just with the Powershell cmd.
Whats your current powershell version? Just run. Get-Host | Select-Object Version I cannot provide any instructions because I dont do anything different than you. virtualenv . -vvv --with-traceback
./Scripts/activate
./Scripts/deactivate |
@Halfbax the expectation is that this would work: virtualenv . -vvv --with-traceback
./Scripts/activate
deactivate Note, not calling the deactivated script directly. Can you show the output of those three? |
Calling it directly seems to be the problem. I am able to reproduce it with Powershell 5/6/7. This works. deactivate The activation nor the deactivation scripts produce any output. You can close this thread. If it is okay for you that the deactivation script doesnt work when directly called. |
This is what I've tried to explain on the other thread too, seems I've failed. We provide an activation script. For deactivation the expectation isn't that you'll have a deactivate script but rather typing in deactivate in the shell will perform the deactivation. The only reason the Batch activation has a deactivation is because it does not allow defining a deactivate script during activation, so we work around that issue by having a deactivation script that we put onto the path. |
Issue
Unable to deactivate the virtual environment while using Powershell in Windows Terminal.
Environment
Windows 10 Pro 10.0.18363
Windows Terminal (Powershell)
Output of the virtual environment creation
Workaround until it's fixed
See #1724 (comment)
The text was updated successfully, but these errors were encountered: