Splunk Dev

Help installing Numpy!

sdorich
Communicator

Hi,

I might need to post this in a Python community but thought I'd start here since I've done this on other servers and haven't had problems. So I'm trying to install setuptools and Numpy for Splunk's OOB Python (version 2.7.5). But I keep running into problems (like "no module named ctypes" even though I have ctypes via a "yum" installation). And this is only one of the problems I've ran into. Another big one was "Python.h couldn't be compiled". Anyway, bottom line is I just need to install Numpy so I can use it for a search command (that uses python algorithm that depends on the Numpy module).

If anyone has ever successfully done this, please help!

By the way, I don't understand why Numpy wouldn't be bundled with Splunk's OOB Python. Numpy is popular and powerful for analytics. Isn't Splunk's advantage over other logging vendors powerful analytics??

Tags (2)
0 Karma
1 Solution

sdorich
Communicator

Figured it out...

1) Build and install Python2.7.5 (Redhat's current OOB Python version is 2.6)
After downloading & unzipping,
$ ./configure
$ make
$ make install

2) Install EPEL repo using RPM command
3) $ yum install python-pip
OR $ yum install python-pip
4) $ pip install numpy --upgrade

Then everything is in place.. however, I still think the Numpy module should come OOB with Splunk.

View solution in original post

sdorich
Communicator

Figured it out...

1) Build and install Python2.7.5 (Redhat's current OOB Python version is 2.6)
After downloading & unzipping,
$ ./configure
$ make
$ make install

2) Install EPEL repo using RPM command
3) $ yum install python-pip
OR $ yum install python-pip
4) $ pip install numpy --upgrade

Then everything is in place.. however, I still think the Numpy module should come OOB with Splunk.

Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...