Skip to content
Lucas Moura Belo edited this page Dec 9, 2020 · 13 revisions

Installation instructions

Delphi

To install Python4Delphi into your Delphi IDE, take the following steps:

For Delphi Sydney and later:

  1. Clone or download and unzip the Github repository into a directory (e.g., D:\Components\P4D). Cloning is preferable, since you can then easily update the code.

  2. Start RAD Studio.

  3. Add the source subdirectories (e.g., D:\Components\P4D\Source, D:\Components\P4D\Source\vcl and D:\Components\P4D\Source\fmx) to the IDE's library path for the targets you are planning to use.

  4. Open and install the dclPython, dclPythonVcl and dclPythonFmx design-time packages. It can be found under Packages\Delphi\Delphi 10.4+ directory.

For Delphi earlier versions:

  1. Clone or download and unzip the Github repository into a directory (e.g., D:\Components\P4D). Cloning is preferable, since you can then easily update the code.

  2. Start RAD Studio.

  3. Add the source subdirectory (e.g., D:\Components\P4D\Source and D:\Components\P4D\Source\vcl) to the IDE's library path for the targets you are planning to use.

  4. Open and install the Python4Delphi package. It can be found under Packages\Delphi\Delphi 10.3- directory.

Note: For Delphi Sydney and later, packages are separated into run-time and design-time. For Delphi earlier versions, a single package is available as run-time and design-time.

C++Builder

See the blog post by David Intersimone

Lazarus (FPC)

The Lazarus Python4Delphi package can be found in the Packages/FPC directory. Install it in the standard way.

Clone this wiki locally