Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install sklearn? [closed]

Tags:

python

I have a program for digit recognition and I already installed the NumPy and OpenCv libraries. However, I also need to install the sklearn library. Please help me figure out how to install it on my system.

like image 693
angit Avatar asked Apr 03 '16 10:04

angit


People also ask

How do I install a specific version of scikit-learn?

Download the source package from http://pypi.python.org/pypi/scikit-learn/ , unpack the sources and cd into the source directory. or alternatively (also from within the scikit-learn source folder): pip install . Packages installed with the python setup.py install command cannot be uninstalled nor upgraded by pip later.

Can we install Scikit using pip?

Using such an isolated environment makes it possible to install a specific version of scikit-learn with pip or conda and its dependencies independently of any previously installed Python packages.


1 Answers

pip install numpy scipy scikit-learn 

if you don't have pip, install it using

python get-pip.py 

Download get-pip.py from the following link. or use curl to download it.

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 
like image 137
Lav Patel Avatar answered Sep 28 '22 05:09

Lav Patel