I am making a custom command for splunk, say getInfluentialCommand. So I make a .py file in bin directory. in this .py file, I need to include pandas, numpy. How to do it? Does splunk python environment allow me to include other python module? Do I just need to install as pip install pandas or pip install numpy?
Add a comment
|
2 Answers
You would be best off including a lib directory in your app and include any dependencies from there. This is the model we recommend for including the Splunk SDK for Python in your app. Our docs on this topic are here.