On my RHEL7, I am trying to install py-earth and getting this link error:
/usr/bin/ld: cannot find -lcblas
I have packages blas, blas-devel, atlas and atlas-devel installed.
The compilation command printed after this error specifies
-L/usr/lib64/atlas -lcblas -lm ....
And for completeness, the directory /usr/lib64/atlas
contains the following files and symlinks
libsatlas.so -> libsatlas.so.3.10
libsatlas.so.3 -> libsatlas.so.3.10
libsatlas.so.3.10
libtatlas.so -> libtatlas.so.3.10
libtatlas.so.3 -> libtatlas.so.3.10
libtatlas.so.3.10
Any help?
The library is built upon the SciPy (Scientific Python) that must be installed before you can use scikit-learn.
Download the source package from http://pypi.python.org/pypi/scikit-learn/ , unpack the sources and cd into the source directory. or alternatively (also from within the scikit-learn source folder): pip install . Packages installed with the python setup.py install command cannot be uninstalled nor upgraded by pip later.
pip install scikit-learn Instead, consider installing Python libraries from source code. The simplest way to build scikit-learn from source is to use the ActiveState Platform to automatically build and package it for Windows, Mac or Linux.
This seems to be a problem with sklearn, not understanding that the atlas package now comes as a shared .so file, instead of multiple ones. You can see the problem at this github issue.
My solution was the last one offered: simply create a link:
ln -s /usr/lib64/atlas/libsatlas.so /usr/lib64/atlas/libcblas.so
and try again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With