How to install Python Wowpal Wabbit interface

VW recently added a python interface , however, it's hard for me to find instructions for installing it. If I install VW from homebrew (brew install vowpal-wabbit) and I open python and call

import pyvw

I get ImportError.

+6
source share
2 answers

I was able to successfully install the Python interface on VW by following these steps. Note that this is on an Ubuntu 14.04 machine with Anaconda Python 2.7.10.

  • Prerequisites: Extended and various Python development libraries:

     sudo apt-get install libboost-all-dev sudo apt-get install python-dev libxml2-dev libxslt-dev 
  • git clone Vowpal Wabbit repo and go into the python directory.
  • make Vowpal Wabbit and test your installation with python test.py

import pyvw should work inside the Python console import pyvw .

+5
source
 pip install vowpalwabbit 

should provide you with the latest version. then do

 from vowpalwabbit import sklearn_vw 

This will give you scikit vowpalwabbit

+2
source

All Articles