<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk Machine Learning Toolkit install additional Python packages in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376224#M45636</link>
    <description>&lt;P&gt;Thank you - is it also possible to use the newest anaconda environment with python 3.6 to invoke python classes?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 12:43:57 GMT</pubDate>
    <dc:creator>wfskmoney</dc:creator>
    <dc:date>2018-10-22T12:43:57Z</dc:date>
    <item>
      <title>Splunk Machine Learning Toolkit install additional Python packages</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376221#M45633</link>
      <description>&lt;P&gt;I am researching to implement a LightGBM model using Skicit Learn in Python. Is it possible to install LightGBM Python packages so it can be used through the ML-SPL API ?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 15:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376221#M45633</guid>
      <dc:creator>wfskmoney</dc:creator>
      <dc:date>2018-09-17T15:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Toolkit install additional Python packages</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376222#M45634</link>
      <description>&lt;P&gt;I also want to know how to add python package to SMLT.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 01:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376222#M45634</guid>
      <dc:creator>kptae</dc:creator>
      <dc:date>2018-09-20T01:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Toolkit install additional Python packages</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376223#M45635</link>
      <description>&lt;P&gt;The Splunk ML toollkit is sitting on top of a copy of Anaconda Python 2.7 sitting in Splunk_SA_Scientific_Python_linux_x86_64 (or other relevant OS/arch directory)&lt;/P&gt;

&lt;P&gt;It is possible to just download a copy of Anaconda 2.7 and then copy over the relevant modules. From my notes it looks like &lt;A href="https://repo.anaconda.com/archive/Anaconda2-4.0.0-Linux-x86_64.sh" target="_blank"&gt;https://repo.anaconda.com/archive/Anaconda2-4.0.0-Linux-x86_64.sh&lt;/A&gt; out of &lt;A href="https://repo.anaconda.com/archive/" target="_blank"&gt;https://repo.anaconda.com/archive/&lt;/A&gt; is a good place to start. Install it on its own, and then install the relevant module, then copy the directory, and deps over to the splunk app module directory Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7. When testing you need to make sure you execute via the splunk python to call the anaconda python as the install uses libraries from both. &lt;/P&gt;

&lt;P&gt;If you want to install them in a different Splunk app than the ML app, you will need to copy over and perhaps modify the exec_anaconda.py as per the instructions in the SA README. I have successfully done this to add pandas and pyarrow to a custom application which uses the base numpy package out of Splunk_SA_Scientific_Python_linux_x86_64.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;To use Splunk_SA_Scientific_Python, copy exec_anaconda.py into your app's bin directory. At the top of your custom search command, add the following preamble:&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/usr/bin/python    import
exec_anaconda   
exec_anaconda.exec_anaconda()    # Put
the rest of your imports below, e.g.: 
import numpy as np
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376223#M45635</guid>
      <dc:creator>datasearchninja</dc:creator>
      <dc:date>2020-09-29T21:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Toolkit install additional Python packages</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376224#M45636</link>
      <description>&lt;P&gt;Thank you - is it also possible to use the newest anaconda environment with python 3.6 to invoke python classes?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 12:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376224#M45636</guid>
      <dc:creator>wfskmoney</dc:creator>
      <dc:date>2018-10-22T12:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Toolkit install additional Python packages</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376225#M45637</link>
      <description>&lt;P&gt;I've recently released a new app called &lt;A href="https://splunkbase.splunk.com/app/4322"&gt;PyDen&lt;/A&gt; on Splunkbase which allows developers to create Python virtual environments of varying versions (2.7, 3.5 - 3.7) that can be used to run custom scripts instead of the built-in Python Splunk uses. There is also a pip command available from the search bar that lets you install PyPI packages.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Dec 2018 05:20:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Toolkit-install-additional-Python/m-p/376225#M45637</guid>
      <dc:creator>badarsebard</dc:creator>
      <dc:date>2018-12-30T05:20:17Z</dc:date>
    </item>
  </channel>
</rss>

