Skip to content

Installation

Priyatham edited this page Nov 20, 2022 · 1 revision

Install Python4Delphi (P4D) Dependency

PythonEnvironments is powered by Python4Delphi (P4D). So, we need to install the P4D project first. Detailed instructions to install P4D are mentioned here: https://github.com/Embarcadero/python4delphi/wiki/Installation.

Install PythonEnvironments

With a successful installation of P4D, we're now set to install PythonEnvironments.

  • Clone the PythonEnvironments GitHub repository in the directory path of your choice using the following terminal command prompt:

    git clone https://github.com/Embarcadero/PythonEnviroments.git
  • Let's say the repository is downloaded to path/to/PythonEnvironments. Now open the path\to\PythonEnvironments\packages\P4DPythonEnvironmentsComponentSuite.groupproj group project file using the RAD Studio IDE.

  • Now set the Active Platform to Windows 64-bit and set the Active Configuration to Release at first. Then build both of the P4DTools***.bpl and the P4DEnvironment***.bpl packages together by right clicking as shown below:

    drawing

NOTE: As a pre-requisite, you need to already build P4D for Windows-64 bit and add it to the Library path to perform the above step successfully.

NOTE: To build PythonEnvironments for other target platforms, you need to build P4D for those platforms and add them to Library path respectively as a pre-requisite.

  • This creates a folder - path\to\PythonEnvironments\lib\Win64\Release of all *.dcu files. Add this path\to\PythonEnvironments\lib\Win64\Release path to the Library path for Windows 64-bit platform as we've added in the P4D installation process. Please implement the above similar steps for other target platforms of your choice.

  • Now change the Active Configuration to Debug and Build All and add the created path\to\PythonEnvironments\lib\Win64\Debug path to the Debug DCU path as we've done in the P4D installation. Repeat the similar to the other target platforms of your choice. Adding debug paths will help in debugging your applications.

Clone this wiki locally