Installing scikit-learn for Virtualenv Python 2.7.5 on 64-bit Ubuntu 13.10

1. Install dependencies using apt-get:

sudo apt-get install build-essential python-dev libatlas-dev libatlas3-base liblapack-dev gfortran libpng12-dev libfreetype6-dev

2. Install dependent python modules using virtualenv pip/easy_install:

~/workspace/python-2.7.5-venv/bin/pip install numpy
~/workspace/python-2.7.5-venv/bin/pip install scipy
~/workspace/python-2.7.5-venv/bin/pip install matplotlib (optional, for doc)

3. Install scikit-learn

~/workspace/python-2.7.5-venv/bin/pip install scikit-learn

4. Test installation

$source ~/workspace/python-2.7.5-venv/bin/activate
>>import sklearn

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s