TIBCO Spotfire® Service Python Installation and Administration

Configuring the Python Interpreter to run from a shell on a Linux Computer

In cases where you need to run the bundled Python interpreter from a shell (for example, to install packages using the pip install mechanism), you must first set the environment variable LD_LIBRARY_PATH so that the Python interpreter can run properly.

Before you begin

  • You must have administrator privileges on the Linux computer running the node manager.
  • On the Linux computer running the node manager, navigate to python-service-home and make a note of the service name. (For example, for the bundled Python interpreter, this location is /opt/tibco/tsnm/<version.n.n-nnn>/nm/services/python-service-linux-<n.nn.n.nn-guid>.)

About this task

Running as administrator, perform this task from a bash shell on the Linux computer running the node manager.

Procedure

Export the environment variable LD_LIBRARY_PATH and set the environment variable path to python-service-home/python/lib.
export LD_LIBRARY_PATH="/opt/tibco/tsnm/<version.n.n-nnn>/nm/services/python-service-linux-<n.nn.n.nn-guid>/python/lib"

Results

The environment variable is now available to Python interpreter, and the system can find the libraries that are required to run the interpreter from the shell.
Note: For more information about using pip to install packages, see Package Library Location.