Skip to content

Bug Report - TPyEnvironmentAddOnGetPip / get-pip.py Issues with Python 3.13 #67

@wesleybobato

Description

@wesleybobato

During development of a sample project using Python4Delphi and PythonEnvironments, I encountered issues with TPyEnvironmentAddOnGetPip.

  • Steps to Reproduce

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.

  • get-pip.py is Outdated

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.

  • Additional Observations

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.

  • Documentation Request

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.

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions