pentaho-labs / pentaho-cpython-plugin

This is a PDI plugin that allows execution of Python code.
Apache License 2.0
32 stars 19 forks source link

Virtualenvs #33

Open kiedanski opened 3 years ago

kiedanski commented 3 years ago

Is there support for virtual environments and if so, how?

eicherjc commented 3 years ago

There is no way to specify virtual environments through the GUI of the CPython Step. Though the Enterprise Edition Python step does support that.

You can, however, activate a virtual environment as part of the startup process when running spoon.bat/sh. You are essentially "hard coding" the environment at that point and any process in Pentaho will be using that virtual environment for as long as that session is active.