Pages

Monday, December 16, 2013

How to get started with scikit-learn in python

I have had difficulties with managing the versions of different libraries like scikit-learn, numpy, matplotlib and sklearn. The best way I could figure out was to use the source code and add it to PYTHONPATH. The steps are documented below.

git clone git://github.com/scikit-learn/scikit-learn.git
export PYTHONPATH="/home/yourname/bin/scikit-learn"
python setup.py build_ext --inplace
make

Resources :

  1. http://scikit-learn.org/dev/developers/index.html#retrieving-the-latest-code
  2. http://stackoverflow.com/questions/12219657/upgrade-version-of-scikit-learn-included-in-enthought-distribution

No comments:

Post a Comment