Splunk Dev

Pip installation on Splunk

jmr44
Explorer

I am trying to install PIP on the splunk provided python - python3.7. 

From what I can see, python is located on /opt/splunk/bin directory, so I am using the command:

python3.7 get-pip.py --user after getting in that directory. However, I am getting errors, such as:

ModuleNotFoundError: No module named 'distutils.command'

 

Is there already pip installed here? How 

 

What do I do? As far as I know pip usually comes with python3 but I do not see it here. Without pip, it is extremely difficult to install any package so I am in a loop. 

 

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Why would you want to do that?

If you want to manipulate splunk from outside, system-wide python is enough.

If you want to use python in your app, the main code should be contained in app/bin and all dependencies should be placed in app/lib. And it should be easily moveable (for example - deployable from deployment server), should work when app is renamed and so on.

https://dev.splunk.com/enterprise/docs/developapps/createapps/appanatomy/

Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...