Getting Started
Prerequisites
- Windows 10 or Windows 11 (
x64,arm64, orx86) - PowerShell 7.x (
pwsh.exe) inPATHwinget install Microsoft.PowerShell
Note: Administrator privileges are never required. All registry keys,
PATHentries, and environment variables are scoped strictly to the current user (HKCU/User).
First Installation (Interactive)
- Extract the release
.zip(or clone the repository) to a folder of your choice. - Run
main.batand select1. Download & Install Portable Python. - The manager queries
https://www.python.org/ftp/python/index-windows.jsonand displays available officialPythonCorereleases with Latest Stable listed as Option 1 ([DEFAULT]):- Press Enter to install Latest Stable.
- Enter a menu number (
1-10) to install a specific minor line. - Type
b 3.14(orb 3.14t) to browse individual patch releases in that minor line. - Type an exact version or spec (e.g.,
3.13.17,freethreaded,prerelease).
- Confirm or customize the target folder (e.g.,
D:\CLI\Python). - The manager downloads the official ZIP, verifies its SHA-256 hash, extracts it, initializes
<InstallDir>\data\, bootstrapspipoffline viaensurepip, and configures UserPATH, portable env vars, and PEP 514HKCUregistry keys. - Open a new terminal window and verify:
python --version pip --version
Portable Directory Layout
All mutable user state stays inside <InstallDir>\data\ and is preserved across in-place updates:
<InstallDir>\
├── python.exe / pythonw.exe
├── Scripts\ (pip.exe & installed CLI scripts)
├── Lib\site-packages\
│ └── sitecustomize.py (auto-managed zero-leak portability fallback)
├── python-portable.json (manager metadata)
└── data\ (preserved across all in-place updates)
├── pip.ini (PIP_CONFIG_FILE)
├── pip-cache\ (PIP_CACHE_DIR)
├── user-site\ (PYTHONUSERBASE)
├── venvs\ (WORKON_HOME)
└── python_history (PYTHON_HISTORY)
Side-by-Side Installations
Use {minor} in config.ini (or pass -TargetDir) to keep multiple Python versions installed simultaneously:
pwsh -File src\install.ps1 -Version 3.14 -TargetDir "D:\CLI\Python-3.14"
pwsh -File src\install.ps1 -Version 3.13 -TargetDir "D:\CLI\Python-3.13"
# Switch active version (updates User PATH, portable env vars, and PEP 514 registry)
pwsh -File src\configure.ps1 -Mode SwitchActive -TargetDir "D:\CLI\Python-3.13"