Created
September 26, 2023 09:09
-
-
Save oliverlabs/8637dbc8e74a72f77fa03cb87a5a87e3 to your computer and use it in GitHub Desktop.
PowerShell Functions to activate and deactivate a Python virtual environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Activate a Python Virtual Environment | |
Function vea { | |
Get-ChildItem activate.ps1 -Recurse -Depth 2 | % { $_.FullName } | Invoke-Expression | |
} | |
## Deactivate a Python Virtual Environment | |
Function ved { | |
Invoke-Expression "deactivate -nondestructive" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment