Part 2 - Embedded Python + pip

 

 

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 the required modules for the next steps.

python.exe -m pip install django
python.exe -m pip install psutil
python.exe -m pip install selenium

 

 


Windows
Django



09 Jan. 2025 | Last Updated: 06 Feb. 2026 | jaimedcsilva

Related
  • Part 1 - Example of a Django project
  • Part 2 - Embedded Python + pip
  • Part 3 - Modifying manage.py
  • Part 4 - Creating a launcher
  • Part 5 - Windows Installer with Inno Setup

  • Buy Me a Coffee