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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...