LexiconCode / PythonEmbed4Win

Quickly setup a portable python environment for Windows using an embed.zip.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PythonEmbed4Win

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.

About

Quickly setup a portable python environment for Windows using an embed.zip.

License:MIT License


Languages

Language:PowerShell 100.0%