Installing Python libraries to work with scikit-learn
I was trying to install scikit-learn and it had the following requirements /dependencies
Python (>= 2.6 or >= 3.3),
NumPy (>= 1.6.1), & SciPy (>= 0.9).
As per the website, http://scikit-learn.org/stable/install.html they have suggested
not to install it using yum. Only option was using pip , but I have run into
trouble using pip to install numpy. The moment I tried to upgrade numpy
using pip it was downgrading numpy to 1.1.1
not to install it using yum. Only option was using pip , but I have run into
trouble using pip to install numpy. The moment I tried to upgrade numpy
using pip it was downgrading numpy to 1.1.1
After googling for a while I found a solution for this problem by using
pip install -I numpy==1.6.1
pip install -I scipy==0.9.0
Next install 'Development Tools' package using yum
yum group install 'Development Tools' -y
Last install scikit-learn using
pip install scikit-learn
No comments:
Post a Comment