-
-
Notifications
You must be signed in to change notification settings - Fork 315
Installation
To install Python4Delphi into your Delphi IDE, take the following steps:
-
Using MultiInstaller (Delphi Sydney or later)
Read the instructions in the "Install" directory.
-
Manual Installation
-
For Delphi Sydney and later:
-
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.
-
Start RAD Studio.
-
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.
-
Open the "P4DComponentSuite" project group which can be found under Packages\Delphi\Delphi 10.4+ directory.
-
In the Project dock window, right-click on the group project and from the context menu select "Build All".
-
Then install the dclPython, dclPythonVcl and dclPythonFmx design-time packages.
-
-
For Delphi earlier versions:
-
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.
-
Start RAD Studio.
-
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.
-
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.
See the blog post by David Intersimone
The Lazarus Python4Delphi package can be found in the Packages/FPC directory. Install it in the standard way.