Not able to make Python script executed by StackStorm action use ncclient Python library

Hello All,
I am trying to execute .py script which references ncclient library but StackStorm is not able to find the library. When I try to run the .py script through st2 run I get:

ModuleNotFoundError: No module named ‘ncclient’

Tried to add the library within the virtualenv of the corresponding pack (and also the st2 virtualenv), still getting the same error.

My question is what is the proper way to have the library added?


The issue was within st2 virtual-env and some privilege issues for site-packages folder. Once fixed, library is visible.