During development of a sample project using Python4Delphi and PythonEnvironments, I encountered issues with TPyEnvironmentAddOnGetPip.
Create a simple project with:
TPythonEngine
TPyEmbeddedEnvironment
TPyEnvironmentAddOnGetPip
Configure:
Platform: Windows 64-bit
Python Version: 3.13
Enable Python in the project and compile/run the application.
Problem
At startup, an error message is raised.
To make it work, I had to manually download:
https://bootstrap.pypa.io/get-pip.py
and place it inside the extracted embedded Python folder.
The bundled get-pip.py appears to be outdated:
https://github.com/Embarcadero/PythonEnvironments/blob/main/resources/pip/get-pip.py
Please update it so it works correctly with Python 3.13 embedded distributions.
TPyEmbeddedEnvironment currently creates a folder named:
3.13
It would be better if it created a folder using the full embedded package name, for example:
min-python3-windows-3.13.0-amd64
This would make the environment folder structure much clearer and easier to identify.
Could you please add documentation or Wiki examples explaining:
TPyEnvironmentAddOnGetPip
TPyEnvironmentAddOnEnsurePip
Specifically:
When each component should be used
Their intended purpose
Whether they are only meant for embedded Python environments
Whether both components can be used together safely
Environment
Delphi 13
Latest Python4Delphi
Latest PythonEnvironments
Repositories:
https://github.com/Embarcadero/python4delphi
https://github.com/Embarcadero/PythonEnvironments
Thank you.

During development of a sample project using Python4Delphi and PythonEnvironments, I encountered issues with TPyEnvironmentAddOnGetPip.
Create a simple project with:
TPythonEngine
TPyEmbeddedEnvironment
TPyEnvironmentAddOnGetPip
Configure:
Platform: Windows 64-bit
Python Version: 3.13
Enable Python in the project and compile/run the application.
Problem
At startup, an error message is raised.
To make it work, I had to manually download:
https://bootstrap.pypa.io/get-pip.py
and place it inside the extracted embedded Python folder.
The bundled get-pip.py appears to be outdated:
https://github.com/Embarcadero/PythonEnvironments/blob/main/resources/pip/get-pip.py
Please update it so it works correctly with Python 3.13 embedded distributions.
TPyEmbeddedEnvironment currently creates a folder named:
3.13
It would be better if it created a folder using the full embedded package name, for example:
min-python3-windows-3.13.0-amd64
This would make the environment folder structure much clearer and easier to identify.
Could you please add documentation or Wiki examples explaining:
TPyEnvironmentAddOnGetPip
TPyEnvironmentAddOnEnsurePip
Specifically:
When each component should be used
Their intended purpose
Whether they are only meant for embedded Python environments
Whether both components can be used together safely
Environment
Delphi 13
Latest Python4Delphi
Latest PythonEnvironments
Repositories:
https://github.com/Embarcadero/python4delphi
https://github.com/Embarcadero/PythonEnvironments
Thank you.