A single PowerShell script to easily and quickly create a standalone Python local environment from a Windows embed.zip. No prior Python installation is required.
To run:
PS> Invoke-WebRequest -Uri "https://raw.githubusercontent.com/jtmoon79/PythonEmbed4Win/main/PythonEmbed4Win.ps1" -OutFile "PythonEmbed4Win.ps1"
PS> .\PythonEmbed4Win.ps1 -?
Installing the Python for Windows Embed zip file requires some tedious tweaks. See this gist. This script will handle the tedious tweaks so the new Python installation will run in an isolated manner.
This is similar to a Python Virtual Environment but technically is not.
It does not require an activate script to set environment variable VIRTUAL_ENV
or modify the PATH
. It will run isolated without environment modifications.
Derived from this StackOverflow answer.