Cannot get scikit-learn installed on OS X

2024/10/11 16:22:54

I cannot install scikit-learn. I can install other packages either by building them from source or through pip without a problem. For scikit-learn, I've tried cloning the project on GitHub and installing via pip without success. Can anyone please help? Here is part of my pip.log:

Downloading/unpacking scikit-learnRunning setup.py egg_info for package scikit-learnWarning: 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 toIgnoring attempt to set 'name' (from '' to 'scikits.learn')Appending sklearn.check_build configuration to sklearnIgnoring attempt to set 'name' (from 'sklearn' to 'sklearn.check_build')Appending sklearn.svm.tests configuration to sklearn.svmIgnoring 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']
Answer

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

https://en.xdnf.cn/q/69754.html

Related Q&A

Decompressing a .bz2 file in Python

So, this is a seemingly simple question, but Im apparently very very dull. I have a little script that downloads all the .bz2 files from a webpage, but for some reason the decompressing of that file is…

Why does Pandas coerce my numpy float32 to float64?

Why does Pandas coerce my numpy float32 to float64 in this piece of code:>>> import pandas as pd >>> import numpy as np >>> df = pd.DataFrame([[1, 2, a], [3, 4, b]], dtype=np…

Conda and Python Modules

Sadly, I do not understand how to install random python modules for use within iPython Notebooks with my Anaconda distribution. The issue is compounded by the fact that I need to be able to do these t…

WeakValueDictionary retaining reference to object with no more strong references

>>> from weakref import WeakValueDictionary >>> class Foo(object): ... pass >>> foo = Foo() >>> db = WeakValueDictionary() >>> db[foo-id] = foo >>…

Using pretrained glove word embedding with scikit-learn

I have used keras to use pre-trained word embeddings but I am not quite sure how to do it on scikit-learn model.I need to do this in sklearn as well because I am using vecstack to ensemble both keras s…

Is there an easy way to tell how much time is spent waiting for the Python GIL?

I have a long-running Python service and Id like to know how much cumulative wall clock time has been spent by any runnable threads (i.e., threads that werent blocked for some other reason) waiting for…

Inverse filtering using Python

Given an impulse response h and output y (both one-dimensional arrays), Im trying to find a way to compute the inverse filter x such that h * x = y, where * denotes the convolution product.For example,…

Quadruple Precision Eigenvalues, Eigenvectors and Matrix Logarithms

I am attempting to diagonalize matrices in quadruple precision, and to take their logarithms. Is there a language in which I can accomplish this using built-in functions?Note, the languages/packages i…

How to use pyinstaller with pipenv / pyenv

I am trying to ship an executable from my python script which lives inside a virtual environment using pipenv which again relies on pyenv for python versioning. For that, I want to us pyinstaller. Wha…

Sending DHCP Discover using python scapy

I am new to python and learning some network programming, I wish to send an DHCP Packet through my tap interface to my DHCP server and expecting some response from it. I tried with several packet build…