Troubleshooting
pwsh.exe Was Not Found in PATH
Portable Python Manager intentionally requires PowerShell 7.x (#Requires -Version 7.0). Install it via winget:
winget install Microsoft.PowerShell
Then open a new terminal window and re-run main.bat.
python Opens Microsoft Store Instead of Portable Python
Windows includes App Execution Aliases (python.exe / python3.exe) under %LOCALAPPDATA%\Microsoft\WindowsApps that may appear earlier in User PATH:
- Run
pwsh -File src\configure.ps1 -Mode SwitchActiveto prepend your portable Python directory to UserPATH, or - Disable the Store stubs in Windows Settings -> Apps -> Advanced app settings -> App execution aliases (
python.exeandpython3.exe), then open a new terminal.
Changes to PATH or Env Vars Don’t Appear in Current Terminal
Windows processes inherit environment variables at launch. After installing or running -Mode SwitchActive, open a new terminal window so Explorer/terminal picks up the WM_SETTINGCHANGE broadcast.
pip Is Missing After Manual Extraction
Official PSF PythonCore ZIPs bundle ensurepip. Run:
pwsh -File src\configure.ps1 -Mode BootstrapPip
This bootstraps pip offline via python.exe -m ensurepip --default-pip and optionally upgrades it.
Binary Wheels Fail After a Cross-Minor In-Place Update (e.g. 3.14 -> 3.15)
CPython C-extension .pyd wheels and existing virtual environments are tied to a specific major.minor ABI.
- Use
src\update.ps1Option 1 (same minor line, e.g.3.14.9->3.14.10) for seamless in-place updates. - When moving to a new minor line (
3.14->3.15), prefer a side-by-side folder (e.g.D:\CLI\Python-3.15), export your package list viaconfigure.ps1 -Mode ExportProfile, and import it into the new installation.
Checking Verbose Logs
Every run appends timestamped DEBUG/TRACE diagnostics and exception stack traces to:
logs\<prefix>-YYYY-MM-DD.log
You can open the folder directly from main.bat Option 7. Open Logs Folder.