Tuesday, February 5, 2019

Preparing Python (and IDLE) on Microsoft Windows using PowerShell script, the script content




In YouTube description, any URL texts pasted would be modified. I make a copy here in this post.

You can also update "$url" variable to the most update one, so you can download and install the most up-to-date version of Python. At this moment, the most up-to-date version of Python 2.7 is this:

https://www.python.org/ftp/python/2.7.15/python-2.7.15.amd64.msi

Cheers!


### COPY BELOW ###

$url = "https://www.python.org/ftp/python/2.7.13/python-2.7.13.amd64.msi"
$output = "python-2.7.13.amd64.msi"
$start_time = Get-Date

Invoke-WebRequest -Uri $url -OutFile $output
Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"

.\python-2.7.13.amd64.msi

### END OF COPY ###

No comments:

Post a Comment