like writen here -> https://github.com/scikit-learn/scikit-learn/pull/766 'ATLAS' detection in numpy is not necessarily reliable and does not always work (e.g. see Gentoo's patches [1,2]). Removing the ('NO_ATLAS_INFO', 1) in blas_info.get('define_macros', [])) part enables sklearn to be properly compiled with ATLAS support on Gentoo & Gentoo Prefix (i.e. Gentoo in non-root user space).' but: ImportError: /usr/lib64/python2.7/site-packages/sklearn/cluster/_k_means.so: undefined symbol: cblas_ddot $ eselect cblas list Installed CBLAS for library directory lib64 [1] atlas [2] atlas-threads * [3] gsl [4] reference under root everything is ok.
commit 55af64bf12a24f3fc834c8d40abd0d745ba9f673 Author: Justin Lecher <jlec@gentoo.org> Date: Tue Jan 26 18:01:35 2016 +0100 sci-libs/scikits_learn: Drop old obsoletes: Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=436750 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=423269 Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55af64bf12a24f3fc834c8d40abd0d745ba9f673