Source: https://github.com/pyenv-win/pyenv-win
Recently I found a Windows package management tool choco, which seems to be quite good.
-
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
Bypass
bypass strategies to install things orAllSigned
improve security.- Run
Get-ExecutionPolicy
. If it returnsRestricted
, then runSet-ExecutionPolicy AllSigned
orSet-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')) - Run
- Paste the copied text into yours and press Enter.
- Wait a few seconds for the command to complete.
- If you don't see any errors, you can use Chocolatey! Type
choco
orchoco -?
now, or see the Getting Started to get instructions.