无法在OS X上安装scikit-learn [英] Cannot get scikit-learn installed on OS X
本文介绍了无法在OS X上安装scikit-learn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在即将进行的项目中使用 scikit-learn ,但我绝对无法安装.我可以通过从源代码或通过pip构建其他软件包来安装它们,而不会出现问题.对于scikit-learn,我尝试在GitHub上克隆项目并通过pip安装没有成功.谁能帮忙吗?这是我的pip.log
的一部分:
I would like to use scikit-learn on an upcoming project and I absolutely cannot install it. 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-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']
推荐答案
安装 SciPy Superpack 或 EPD ,可以在OSX下一次获得所有必需的依赖项.
Install SciPy Superpack or EPD to get all the required dependencies in one shot under OSX.
这篇关于无法在OS X上安装scikit-learn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文