Cannot get scikit-learn installed on OS X

I would like to use scikit-learn in the upcoming project, and I absolutely cannot install it. I can install other packages by creating them from the source or through the pipeline without any problems. For scikit-learn, I tried to clone the project on GitHub and install it through pip without any problems. Can anybody help? Here is part of my pip.log :

 Downloading/unpacking scikit-learn Running setup.py egg_info for package scikit-learn Warning: Assuming default configuration (scikits/learn/{setup_scikits.learn,setup}.py was not found)Warning: Assuming default configuration (sklearn/svm/tests/{setup_tests,setup}.py was not found)Appending scikits.learn configuration to Ignoring attempt to set 'name' (from '' to 'scikits.learn') Appending sklearn.check_build configuration to sklearn Ignoring attempt to set 'name' (from 'sklearn' to 'sklearn.check_build') Appending sklearn.svm.tests configuration to sklearn.svm Ignoring attempt to set 'name' (from 'sklearn.svm' to 'sklearn.svm.tests') blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] 
+7
source share
4 answers

Install SciPy Superpack or EPD to get all the necessary dependencies in one shot under OSX.

+8
source

I came across this good tutorial and with a few simple steps forward you can install it through PIP as follows:

(Outlines only. See the authors page for details.)

  • install xcode
  • install pip
  • install brew
  • install numpy
  • install gfortran (important!)
  • install scipy
  • install matplotlib (useful)
  • install scikit-learn
  • test

Also see comments on the authors page on how to install PIP and Virtualenv.

+3
source

If you use Homebrew , then these two commands should do it for you:

 brew tap homebrew/python brew install scipy 
+2
source

You can use pip to install scikit.

http://scikit-learn.org/stable/install.html

0
source

All Articles