Skip to main content

Installing and Using Python Modules in Jython Evaluator.

  • February 17, 2022
  • 0 replies
  • 420 views

AkshayJadhav
StreamSets Employee
Forum|alt.badge.img
If you've installed a library such as python-grok using pip, you can simply add it to your PYTHONPATH in the Jython Processor.
 
For example:
 
import sys
sys.path.append('/path/to/installed/python-grok')
 
Then you should be able to import it
 
from grok import Grok
grok = Grok()

To find the path to the installed packages on your computer use this command :

>>> import site; site.getsitepackages()

This topic has been closed for replies.