Skip to content Skip to sidebar Skip to footer

Can't Install Scikit-learn In Python

Hi I'm trying to install scikit-learn in Python on a mac, but failed. Does anyone having idea how to fix this? Thanks! The error message is as follows. Error message Command /usr/

Solution 1:

I ran into this same error with pip install -U scikit-learn on Ubuntu 14.04. I believe it's an insufficient permissions issue on the file /private/tmp/pip_build_root/scikit-learn/setup.py. I resolved it by elevating permissions on pip with sudo pip install -U scikit-learn


Solution 2:

I upgrade pip from 7.1.2 to 8.1 and it fixed the issue


Solution 3:

I have installed scikit-learn by the following method.

    $ pip install git+https://github.com/scikit-learn/scikit-learn.git

Solution 4:

It is best practise to set up an environment to do this. Anaconda (or Miniconda) handles the requirements/dependencies pretty well.


Post a Comment for "Can't Install Scikit-learn In Python"