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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...