📅  最后修改于: 2022-03-11 14:46:35.095000             🧑  作者: Mango
First install chocolatey:
$ @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
#here is the documentation about chocolatey: https://chocolatey.org/docs/why
#exit or refresh cmd, then run
$ choco upgrade python -y