This post helped me immensely with dealing with import version issues when working with the Splunk Python SDK. In my dev environment, pip install would default to python 3.8, and when I would copy the downloaded module into my project it would error out because my Splunk instance is using Python 3.7.11. By pip installing packages in this manner, I am able to effectively install modules with the piece of mind that they will be the correct version for my Splunk instance. Installed modules are found in this directory (Ubuntu 20): /opt/splunk/lib/python3.7 Splunk Enterprise Version: 9.0.1 Working with Generating Search Commands and the BigQuery API
... View more