Of course it is possible to use an embeddable package as an interpreter.

First download python 3.11 embeddable package from the official website( Here is the windows system. ),

and then unzip it to your computer. Older systems may require additional download and use of an unzip tool.

Note that the path should preferably be in full English and without spaces and special characters.

Next there are two ways to specify it as an interpreter in VS Code

Method one

  • Ctrl+Shift+P --> Python:Select Interpreter --> Enter Interpreter Path...

  • Paste the python.exe path you just unzipped in the box and press Enter. On my computer this is:

    C:\Users\Admin\Downloads\python-3.11.0-embed-amd64\python.exe
    

  • Or you can click Find... and select the python.exe you just unzipped in the opened folder window.

Method two

  • Add the following configuration in settings.json

         "python.defaultInterpreterPath": "C:/Users/Admin/Downloads/python-3.11.0-embed-amd64/python.exe",
         // "python.defaultInterpreterPath": "C:\\Users\\Admin\\Downloads\\python-3.11.0-embed-amd64\\python.exe",
    

    The path is the absolute path of python.exe. If you use a backslash \, remember to escape it. like my comment above

  • Then select Use Python from `python.defaultInterpreterPath` setting in the Select Interpreter panel.

Run the code to output the interpreter path

Answer from JialeDu on Stack Overflow
🌐
Steve Dower
stevedower.id.au › blog › why-so-many-python-installers
Why are there so many Python installers? | Steve Dower
November 6, 2016 - If the executable installer is the Python Developer Kit, then the embeddable package is the Python runtime redistributable. Rather than trying to be an easy-to-use installer, this package is a simple ZIP file containing the bare minimum of Python required to run applications.
🌐
Reddit
reddit.com › r/learnprogramming › confused about download versions
r/learnprogramming on Reddit: Confused about download versions
September 3, 2016 -

Hey, so I've been learning to code(python) over the last month and its going well so far. Something that has been confusing me is versions of a download. For example if I want to get scrappy or flask, there's always different versions. I just switched from mac to windows today, and I'm not sure which python to download. would be great if someone could break down the basics. (and by versions I don't mean like 3.6 vs 3.5, I mean 'embedable zip file vs web-based installer vs executable installer)

🌐
YouTube
youtube.com › codetwist
python windows embeddable package vs install - YouTube
Download this code from https://codegive.com When working with Python on Windows, you may come across two different ways to install Python: using the standar...
Published: December 27, 2023
Views: 101
🌐
YouTube
youtube.com › watch
python embeddable package vs installer - YouTube
Download this code from https://codegive.com Python, a versatile and powerful programming language, offers different ways to install and use its interpreter....
Published: December 25, 2023
🌐
Python
docs.python.org › 3 › using › windows.html
4. Using Python on Windows — Python 3.14.7 documentation
The embedded distribution is a ZIP file containing a minimal Python environment. It is intended for acting as part of another application, rather than being directly accessed by end-users.
🌐
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 full Python installer for Windows is an executable file that is quite often blocked by system administrators. On the python website (https://www.python.org/downloads/windows/) you can also find the Python “embedable” package which is just a simple zip file and can function as a complete ...
Find elsewhere
🌐
Microsoft Developer Blogs
devblogs.microsoft.com › dev blogs › microsoft for python developers blog › using cpython’s embeddable zip file
Using CPython's Embeddable Zip File - Microsoft for Python Developers Blog
February 22, 2019 - Using the embeddable zip file implies that you want the minimum required files to run your application, and you have your own installer. So if you need extra files at runtime – such as a Python package – you’ll need to install them with ...
🌐
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 - In my opinion, it is a portable, ready-to-ship virtualenv. However, the embedded distribution comes with some limitation: Third-party packages should be installed by the application installer alongside the embedded distribution.
🌐
GitHub
gist.github.com › jtmoon79 › ce63fe655b2f544462e70d8e5ec30ff5
fully configuring embedded Python on Windows 10 · GitHub
Embedded Python (Windows embeddable package zip file) will not find installed packages and modules .
🌐
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.
🌐
Silicon Cloud
silicloud.com › home › what is the difference between python embeddable and installable?
What is the difference between Python embeddable and installable? - Blog - Silicon Cloud
March 22, 2024 - Python install is suitable for ... interface. Therefore, Python embeddable is suitable for situations where Python needs to be embedded into other applications, while Python install is suitable for scenarios where Python programs run independently....
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
    
🌐
Medium
medium.com › @DatawizMalaysia › working-with-python-in-a-lightweight-isolated-approach-7caa05d3282e
Working with Python: In A Lightweight, Isolated Approach | by Rajender Singh | Medium
March 7, 2025 - As I mentioned earlier, I opt to install Python using the embeddable package because it’s a straightforward ZIP file containing the essential components for running Python applications.
🌐
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
🌐
Codingapex
codingapex.com › python-embeddable-package
What is Python Embeddable Package? (5 practical uses)
April 29, 2023 - We cannot provide a description for this page right now
🌐
Python.org
discuss.python.org › python help
Python for Windows - docs? - Python Help - Discussions on Python.org
April 19, 2022 - I’m wanting to install Python on Windows. My previous experience (a fair amount) has ben entirely on Linux. I’d like to start by reading some (online) starter documentation for Python on Windows. Is there any good documentation that you can recommend?