Last active
October 23, 2023 19:36
-
-
Save kfchou/c95957ad929ff67b194926c985071395 to your computer and use it in GitHub Desktop.
Minimal powershell script for installing apps needed for python development
This file contains hidden or 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
| # Install Chocolatey | |
| Set-ExecutionPolicy Bypass -Scope Process -Force | |
| [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 | |
| iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
| Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 | |
| refreshenv | |
| # Install dev software | |
| choco install -y git --package-parameters="'/GitAndUnixToolsOnPath /WindowsTerminal'" | |
| choco install -y python --version=3.11 | |
| choco install -y vscode | |
| choco install -y vscode-python | |
| # Refresh path | |
| refreshenv | |
| # Update pip | |
| python -m pip install --upgrade pip | |
| # Poetry | |
| pip install poetry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment