1
votes

I'm trying to install the splunk SDK for Python. I run the following command, "C:\Python\python.exe" "C:\Python27\splunk-sdk-python-1.5.0\setup.py", and I get the following results: Error Results from Command.

I've tried putting the splunklib folder in multiple stpots within the Python27 directory. None of the location seem to work. I also tried changing the registry values: How to execute Python scripts in Windows?.

Any help as to how to install the Splunk SDK for Python would be greatly appreciated.

2
Can you try installing it with pip instead? pip install splunk-sdk - Shakeel
No, when I type in pip install splunk-sdk, my command prompt says, 'pip' is not recognized as an internal or external command, operable program or batch file. - pHorseSpec
See stackoverflow.com/questions/4750806/…, let me know if that helps (remember the SDK doesn't work with Python 3.x) - Shakeel
Got it working thanks to your link! - pHorseSpec

2 Answers

0
votes

In case you have not resolved pip, the below command should work to install modules with pip. I have multiple versions of Python and this is how I install to the correct location.

C:\Python27\Scripts\pip.exe install splunk-sdk
-2
votes

First install pip in windows, then using pip:

pip install splunk-sdk

Regards