简体   繁体   English

安装适用于Python的Splunk SDK

[英]Installing Splunk SDK for Python

I'm trying to install the splunk SDK for Python. 我正在尝试为Python安装splunk SDK。 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: 我运行以下命令"C:\\Python\\python.exe" "C:\\Python27\\splunk-sdk-python-1.5.0\\setup.py" ,我得到以下结果: 命令的错误结果 .

I've tried putting the splunklib folder in multiple stpots within the Python27 directory. 我尝试将splunklib文件夹放在Python27目录内的多个stpot中。 None of the location seem to work. 该位置似乎都不起作用。 I also tried changing the registry values: How to execute Python scripts in Windows? 我还尝试了更改注册表值: 如何在Windows中执行Python脚本? .

Any help as to how to install the Splunk SDK for Python would be greatly appreciated. 非常感谢您提供有关如何为Python安装Splunk SDK的帮助。

In case you have not resolved pip, the below command should work to install modules with pip. 如果您还没有解决pip的问题,则以下命令应该可以通过pip安装模块。 I have multiple versions of Python and this is how I install to the correct location. 我有多个版本的Python,这就是我安装到正确位置的方式。

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

First install pip in windows, then using pip: 首先在Windows中安装pip,然后使用pip:

pip install splunk-sdk 点安装splunk-sdk

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM