Skip to content

Instantly share code, notes, and snippets.

Last active Sep 26, 2017
What would you like to do?
Installing scikit-learn on Amazon Linux AMI on EC2

To install scikit-learn easily run the following command.

curl | sh

Please look over the shell file being run to make sure no evil is done to your machine.

sudo yum -y install gcc-c++ python27-devel atlas-sse3-devel lapack-devel
tar xzf virtualenv-1.11.6.tar.gz
python27 virtualenv-1.11.6/ sk-learn
. sk-learn/bin/activate
pip install numpy
pip install scipy
pip install scikit-learn
Copy link

estwanick commented Jul 29, 2017

This script did not install scikit-learn for me, I instead made my own bootstrap script:

sudo pip install numpy
sudo pip install scipy
sudo pip install -U scikit-learn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment