Skip to content

Instantly share code, notes, and snippets.

@wmachert
wmachert / python-setup.bat
Last active May 8, 2024 06:23
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