Developing for Splunk Enterprise

Pip installation on Splunk

jmr44
Loves-to-Learn

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
Ultra Champion

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/