In the search document p222, it is said"
you want to use the Python interpreter on your operating system instead of the Python interpreter that is included with the Splunk software.
1. Create the following two directories:
¨ /usr/bin/python
¨ $SPLUNK_HOME/bin/python
Create a .path file. The .path file must be stored in one of the bin
directories in your apps.
2.
In the commands.conf file, define your command by specifying the
filename and command.arg.1 attributes. For example:
[fizbin]
chunked = true
filename = python.path
command.arg.1 = fizbin.py"
So what is the format of the python.path file? I put
c:\ProgramData\Anaconda2\python.exe
in my python.path and the command get "External search command 'sample1' returned error code 1. "
Thanks for help.