Yes it is possible, with some restrictions. The following information applies to the Python node. See the Analyze Help documentation for installing pure python modules for use with Jython-based nodes (e.g. Transform, Generate Data).
The Python node is based on Python 2.7 so any packages you want to use must be compatible with Python 2.7.
All supported versions of Data360 Analyze (v. 3.8.x or above) provide the 'python2' directory within the Analyze system's 'site' directory that can be used to store libraries for third-party Python packages. As the python2 directory is within the 'site' directory, its contents are maintained when the Analyze software is upgraded. The directory can be found here: <site>/lib/python2 for example:
/home/<AnalyzeUser>/Data360Analyze/site-7731/lib/python2
This directory is on the import search paths used by the Python node when it attempts to locate a Python module.
A package can be installed to this directory using the pip package manager, e.g using the following command within a terminal window:
python - m pip install --target <site-directory>/lib/python2 <package-name>
Note that it is important to ensure that you are using the Python instance that is shipped with Analyze before using the above command. You can set the required environment variables with the following commands:
## Change to the Analyze installation directory
cd <Analyze_Install_Dir>
## Set the Analyze environment variables
source .profile.lavastorm
## Check the correct Python instance is being referenced
which python
On Windows systems the process is similar for example, within a cmd window use the following commands:
## Change to the Analyze installation's bin directory
cd <Analyze_Install_Dir>/bin
## Set the Analyze environment variables
laeEnv.bat
## Check the correct Python instance is being referenced
where python
------------------------------
Adrian Williams
Precisely Software Inc.
------------------------------
Original Message:
Sent: 05-10-2023 04:05
From: Henrik B
Subject: Python Node
Hello,
is it possible to install third party Python libraries, and if so how?
It would be nice to use with the Python node.
------------------------------
Henrik B
E.ON Sverige
------------------------------