Java
To enable Python support on Java, install the following dependencies:- Python 3: Download and install a supported Python release (3.10 or higher) from the Python website.
- Java Embedded Python (Jep) version 4.2.2
Installing Jep for Java
Jep is a library that allows you to embed the Python interpreter into Java applications. It enables two-way integration between Java and Python, which lets Java programs run Python code, share variables, and even call functions across languages. You can find Jep and installation instructions on the Jep GitHub page.Before you can install Jep, you need to install
pip.- For Debian/Ubuntu-based distributions,
pipcan typically be installed using the following command:sudo apt-get install python3-pip. - For other distributions, refer to the appropriate documentation for
pipinstallation.
pip are installed, install Jep using this command: python3 -m pip install jep==4.2.2
On some Linux distributions,
pip might install Jep to /usr/local/lib64/python3.6/site-packages/jep/ rather than the expected <PythonHome>/lib/site-packages/jep/ path. If cannot locate Jep automatically, set the LibraryPath environment variable to point to the actual Jep installation directory.Configure Your Environment
The final prerequisite step is to set a system environment variable that enables to find your Python installation. Set thePYTHONHOME environment variable to the root directory of your Python installation. This tells where to find the Python interpreter on your system.
.NET
The necessary dependencies to enable Python support on .NET come packaged with the application. You only need to:- Python 3: Download and install a supported Python release (3.7-3.13) from the Python website.
- Set the
PYTHONHOMEenvironment variable to the root directory where you installed Python 3. This tells where to find the Python interpreter on your system.
is compatible with Python releases 3.7-3.13. Later versions of Python cause the application to error.