Splunk Dev

Installing Python 3 interpreter on Windows Splunk

treydismukes
Engager

I am writing an alert script in Python 3, and I'm wondering if putting the second python interpreter on my Windows box will cause problems with the Splunk installation. My Splunk admin is hesitant about mixing the two, but I believe if I keep the new version out of the environment variables I should be able to call it from within my alert script with #!/path/to/paython3 without disturbing Splunk's normal operations.

Thoughts?

Tags (1)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

You are correct. You can install the other Python instance elsewhere, and explicitly call it. I'm not sure Windows respects #! at the top of script, in fact I think it doesn't, so you'd have to code the path in the appropriate place.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...