Installing pip in embedded Python - Full Guide

 

 

Downloading Embedded Python


Download from python.org Embedded Python: 
https://www.python.org/downloads/windows/

Direct link(Python3.12.8): 
Windows embeddable package (64-bit).
 

 

 

Downloading pip
 

Embedded Python does not come with pip installed so we will install pip in the next step.
 

Download get-pip.py from: 
https://bootstrap.pypa.io/get-pip.py
if you are wondering how to, just right click and choose Save As...

Drag get-pip.py inside the embedded Python folder.
 

 

 

Installing pip


Inside the embedded Python folder look for a file pythonx._pth
(it changes depending on the version. For python 3.12 it looks like this: python312._pth)

Open pythonx._pth and uncomment line #5 (import site)
This will allow us to install pip like so:

python.exe get-pip.py 


 

 

Installing Python modules


After you have pip installed, continue inside the Python embedded folder and install any required modules.
Example for installing Django:

python.exe -m pip install django

 


 


Python



14 Oct. 2025 | Last Updated: 03 Dec. 2025 | jaimedcsilva

Related
  • Printing CMD with colors
  • Calculating & Displaying crypto currency with CoinGecko
  • Creatin an .exe file to run a Python script
  • Getting certificate chains from websites
  • Getting the complete trustchain of a website
  • Installing pip in embedded Python - Full Guide
  • Cython - Hiding Python Code
  • How to Send Emails with Python’s smtplib
  • Generating QR Codes with Python

  • Buy Me a Coffee