Portable Python for Windows


This has come in handy for situations where I’ve been unable to install software, but could execute portable software.

  1. Download the latest Python Windows Embedded from Python.org.
  2. Extract the ZIP file someplace.
  3. Verify the target system has the latest VC++ Redistributable from Microsoft. Install if needed.
  4. Download get-pip.py from Pypa.io.
  5. Uncomment
    #import site from python37._pth
  6. Execute
    python get-pip.py
  7. Add Python to the PATH as desired.
You now have a portable Python interpreter for Windows.

Installing Packages with portable pip

Assuming you are in the root directory you extracted Python to:

.\Scripts\pip install