There is a similar trick.

  1. Install pip in the embedded version:

    curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py

    python get-pip.py

  2. Edit pythonXX._pth by adding

    Lib

    Lib\site-packages

  3. Use pip to install other packages

Answer from Mike on Stack Overflow
🌐
GitHub
gist.github.com › jtmoon79 › ce63fe655b2f544462e70d8e5ec30ff5
fully configuring embedded Python on Windows 10 · GitHub
Install and configure embedded Python · Create a new virtual environment based on the embedded distribution · It is recommended to run these steps as an Administrator. Download the .zip file · Unzip to some path (this will use example path C:\python-3.9.6-embed-amd64\).
Top answer
1 of 4
24

There is a similar trick.

  1. Install pip in the embedded version:

    curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py

    python get-pip.py

  2. Edit pythonXX._pth by adding

    Lib

    Lib\site-packages

  3. Use pip to install other packages

2 of 4
16

At least with the latest Python versions (tested on 3.8 and 3.11) this appears to work fine:

  • Download the Windows embeddable package you need from the official site, and extract it.

    PS> Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.11.1/python-3.11.1-embed-amd64.zip -OutFile python-3.11.1-embed-amd64.zip
    PS> Expand-Archive .\python-3.11.1-embed-amd64.zip
    PS> cd .\python-3.11.1-embed-amd64
    
  • Open the python3xx._pth file corresponding to your version (e.g. python311._pth for Python 3.11), and make sure the following import line is uncommented. This will automatically add site directories used by pip to the Python path:

    # Uncomment to run site.main() automatically
    import site
    

    In Powershell this can be automated by running:

    PS> Add-Content -Path .\python311._pth -Value 'import site'
    
  • Download the official pip bootstrap script, e.g. with Powershell:

    PS> Invoke-WebRequest -Uri https://bootstrap.pypa.io/get-pip.py -OutFile get-pip.py
    
  • Run the downloaded script (make sure you're using the correct Python executable in the current directory .\):

    PS> .\python.exe get-pip.py
    Collecting pip
      Using cached pip-22.3.1-py3-none-any.whl (2.1 MB)
    Collecting setuptools
      Downloading setuptools-66.0.0-py3-none-any.whl (1.3 MB)
         ---------------------------------------- 1.3/1.3 MB 16.0 MB/s eta 0:00:00
    Collecting wheel
      Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
    Installing collected packages: wheel, setuptools, pip
      WARNING: The script wheel.exe is installed in 'C:\Users\xxxx\Downloads\python-3.11.1-embed-amd64\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
      WARNING: The scripts pip.exe, pip3.11.exe and pip3.exe are installed in 'C:\Users\xxxx\Downloads\python-3.11.1-embed-amd64\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Successfully installed pip-22.3.1 setuptools-66.0.0 wheel-0.38.4
    
  • Run pip from the .\Scripts directory:

    PS> .\Scripts\pip.exe list
    Package    Version
    ---------- -------
    pip        22.3.1
    setuptools 66.0.0
    wheel      0.38.4
    
    PS> .\Scripts\pip.exe install numpy
    Collecting numpy
      Downloading numpy-1.24.1-cp311-cp311-win_amd64.whl (14.8 MB)
         ---------------------------------------- 14.8/14.8 MB 11.9 MB/s eta 0:00:00
    Installing collected packages: numpy
      WARNING: The script f2py.exe is installed in 'C:\Users\xxxx\Downloads\python-3.11.1-embed-amd64\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Successfully installed numpy-1.24.1
    
    PS> .\python.exe -c 'import numpy; print(numpy.__version__)'
    1.24.1
    
🌐
Python
python.org › downloads › windows
Python Releases for Windows | Python.org
Download Windows embeddable package (64-bit) Download Windows embeddable package (32-bit) Download Windows embeddable package (ARM64) Download Windows release manifest · Python 3.14.6 - June 10, 2026 · Download using the Python install manager.
🌐
Medium
medium.com › @TechArtCorner › set-up-python-embeddable-interpreter-to-work-just-like-the-python-you-are-used-to-ac03e5f3ea03
Set up Python Embeddable interpreter to work just like the Python you are used to. | by Tech Art Corner - Karol Kowalczyk | Medium
January 15, 2026 - Embeddable Python interpreter is a special minimal Python build desired for including Python as a part of another application. Embedded distribution is a ZIP file that you can download just like any Python release.
🌐
YouTube
youtube.com › patritech
How to install Python Embedded and Pip - YouTube
This video goes through the installation embedded version of python and sets up the environment with pip.Pip download link: https://bootstrap.pypa.io/get-pip...
Published: July 9, 2021
Views: 11K
🌐
Bnikolic
bnikolic.co.uk › blog › python › 2022 › 03 › 14 › python-embedwin.html
Installing Python on Windows using the embedded package (no privileges needed) | B. Nikolic Software and Computing Blog
March 14, 2022 - The embedable package is just a zip file which we will expand out so it will not adjust the registry in any way. To avoid having to set up the environment variables endlessly we will need to run a (virtualenv) powershell script so this needs to be enabled: ... wget https://www.python.org/f...
Find elsewhere
🌐
PyPI
pypi.org › project › python-embedded-launcher › 0.6
python-embedded-launcher · PyPI
Unpack a Python 3 embedded distribution. The data is downloaded from https://www.python.org/downloads/windows/ and cached locally (so that for repeated runs, it does not need to use the Internet again).
🌐
GitHub
gist.github.com › rgl › 72b60fc12f91c93c0d286d56ae19e324
notes about python embedded in windows · GitHub
$url = 'https://www.python.org/ftp/python/3.8.0/python-3.8.0-embed-amd64.zip' $filename = Split-Path -Leaf $url (New-Object System.Net.WebClient).DownloadFile($url, "$PWD\$filename") mkdir dist cd dist 7z x "..\$filename" cp ..\cloudbase-init-site-packages.zip site-packages.zip 7z x ..\cloudbase-init-site-packages-pyd.zip -osite-packages Set-Content -Encoding ascii python38._pth @" python38.zip site-packages.zip site-packages .
🌐
Ohidur Rahman
ohidur.com › blog › how-to-set-up-pythons-embeddable-distribution-on-windows
How to Set Up Python's Embeddable Distribution on Windows — Ohidur Rahman
March 22, 2025 - Choose your preferred version and download the corresponding Windows x86-64 embeddable zip file. Unzip the file. For this tutorial, we'll assume you've downloaded Python 3.7 and unzipped it to C:\python\.
Author: europeanplaice
🌐
MA Jian's Blog
sdmj45.github.io › blog › 2021 › 01 › 11 › Python-a01-How-to-install-embedded-python-on-windows
Python-a01-How to install embedded python on windows | MA Jian's Blog
January 15, 2021 - install an embedded python on Windows download zip file from https://www.python.org/downloads/windows/, unzip it and add it to the path environment variable download get-pip.py from https://bootstrap
🌐
WSL
ikrima.dev › ue4guide › python-basics › embeddable-python-distro
Embeddable python distro - Gamedev Guide
Python is available as an embedded distribution for Windows. The distribution is a minimal, isolated build for redistribution as part of another application. These are my notes to install third-party packages for this version of Python using pip. This worked for both the 32-bit and 64-bit versions ...
🌐
Cnc
cnc.zone › kb › tutorials › easy › how_to_install_and_configure_python
How to install and configure Python [CNC.Zone]
March 31, 2026 - Easy How to use different machine ... relay boards Use Expressions and MODBUS to command VFD ... Download Windows embeddable package .zip file from Python download page....
🌐
Fpim
fpim.github.io › posts › setting-up-python-windows-embeddable-environment-properly
Setting up python's Windows embeddable distribution (properly) | from python import me
September 9, 2019 - Sounds scary right? It said it doesn't even support pip. Don't worry, follow these simple steps, you will have a fully workable embedded environment. ... Choose the version python you like and download the corresponding Windows x86-64 embeddable zip file.
🌐
YouTube
m.youtube.com › watch
How to install Python Embedded and Pip
Share your videos with friends, family, and the world
🌐
DEV Community
dev.to › vast-cow › using-pip-with-windows-python-embeddable-3ali
Using pip with Windows Python Embeddable - DEV Community
February 12, 2026 - The **Windows Python embeddable distribution** (`python-3.x.x-embed-amd64.zip`) is a lightweight, self-contained runtime designed primarily for application embedding and redistr...
🌐
DEV Community
dev.to › fpim › setting-up-python-s-windows-embeddable-distribution-properly-1081
Setting up python's Windows embeddable distribution (properly) - DEV Community
September 11, 2019 - Sounds scary right? It said it doesn't even support pip. Don't worry, followthese simple steps, you will have a fully workable embedded environment. ... Choose the version python you like and download the corresponding Windows x86-64 embeddable zip file.
🌐
Medium
preethamdpg.medium.com › distribute-your-python-application-with-ease-windows-python-embeddable-package-667db62bfd23
Distribute your Python Application with ease: Windows Python embeddable package | by preethamdpg | Medium
July 5, 2024 - To solve this there are multiple ... package for Windows. ... Go to https://www.python.org/downloads/ , select the version you want, and click on it then download the Windows embeddable ......