Windows package manager choco installation

Source: https://github.com/pyenv-win/pyenv-win

Recently I found a Windows package management tool choco, which seems to be quite good.

  1. Install using powershell.exe

    Note: Before running any scripts, please check https://chocolatey.org/install.ps1 to ensure safety. We already know that it is safe, but you should verify that you are not familiar with the Internet from any security and content of the script. All these scripts download a remote PowerShell script and execute it on your computer. We take safety very seriously. Learn more about our security protocol .

    With PowerShell, you must ensure that Get-ExecutionPolicy is not restricted. We recommend using Bypassbypass strategies to install things or AllSignedimprove security.

    • Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSignedor Set-ExecutionPolicy Bypass -Scope Process.

    Now run the following command:

    Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  2. Paste the copied text into yours and press Enter.
  3. Wait a few seconds for the command to complete.
  4. If you don't see any errors, you can use Chocolatey! Type chocoor choco -?now, or see the Getting Started to get instructions.

Guess you like

Origin blog.csdn.net/qq_35576225/article/details/109073215