Skip to content

Instantly share code, notes, and snippets.

@Scemist
Created July 27, 2023 11:34
Show Gist options
  • Save Scemist/f57eac290ba077ae21f072946561b7e2 to your computer and use it in GitHub Desktop.
Save Scemist/f57eac290ba077ae21f072946561b7e2 to your computer and use it in GitHub Desktop.
Run WSL Python From Powershell
# If I already have Python on WSL, do I need to install it also on Windows to use in applications and Powershell? No:
function WslPython { wsl -e python3 }
New-Alias -Force -Name python -Value WslPython
# So I'm able to run Python in Windows by: python --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment