How to install Python of required version using PowerShell

by Dmitry Kirsanov 26. February 2023 11:46

 

One of the software packages I’m using, namely Stable Diffusion, requires a particular version of Python to work… Stable. Hence I made a little PowerShell script that would ensure that if there is a Python of lower version or it’s not installed, then it would be downloaded and installed automatically. Here it is:

See attached file, as this blog has no proper code formatting capabilities (sorry!).

InstallPython.ps1.txt (1.23 kb)

blog comments powered by Disqus