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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...