Try to install python

This commit is contained in:
Manuel Cortez 2021-12-23 14:54:38 -06:00
parent b76733f9b9
commit 1be07728ae
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -11,6 +11,13 @@ steps:
commands:
- 'type C:\ProgramData\Amazon\EC2-Windows\Launch\Log\UserdataExecution.log'
- name: install chocolatey
- name: Upgrade chocolatey
commands:
- '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"))'
- 'choco upgrade chocolatey -y'
- name: Install Python
environment:
PYTHON3_32: "C:\\python37\\python.exe"
commands:
- 'choco install python --version 3.7.9 -y -ForceX86'
- '&$env:PYTHON3_32 -V'