Skip to content

Instantly share code, notes, and snippets.

@wmachert
wmachert / python-setup.bat
Last active December 7, 2024 13:37
Portable Windows Python Setup
@echo off
:: Portable Windows Python Setup
:: Downloads and installs a portable Python runtime as well as all requirements.
::
:: Usage: setup.bat [INSTALL-LOCATION] [PYTHON-VERSION]
:: INSTALL-LOCATION - python installation folder, default: .\rt
:: PYTHON-VERSION - major Python version, supported: 35 - 312, default: 312
::
:: To install python 3.12, pip, and all dependencies from the current directory into the directory .\python:
:: > setup.bat python 312