Installing Scikit-learn + dependencies on amazon linux

Get this error while trying to install scikit-learn on an amazon linux container.

"/ Build / lambda_build / bin / python3 -u -c" command import setuptools, tokenize; __ file __ = / tmp / pip-install-a4tgwid0 / scikit-learn / setup.py & # 39 ;; f = getattr (tokenize, & quot; open & # 39;, open) (__ file __); code = f.read (). replace (& # 39; , & # 39;  n); f.close (); exec (compile (code, __file__, exec))) "install --record /tmp/pip-record-9jy2fj48/install-record.txt --single-version-externally-managed -compile - -install-headers /build/lambda_build/include/site/python3.7/scikit- learn "failed with error code 1 in / tmp / pip-install-a4tgwid0 / scikit-learn /

And I think the relevant section of the error log is:

/ usr / bin / ld: can not find -lcblas
collect2: error: ld returned 1 exit status
error: "gcc -pthread -shared -Wl, -z, relro -g build / temp.linux-x86_64-3.7 / sklearn / cluster / _k_means.o command -L / usr / lib64 / atlas -L / usr / lib64 - Lbuild / temp.linux-x86_64-3.7 -lcblas -lm -lpython3.7m -o build / lib.linux-x86_64-3.7 / sklearn / cluster / _k_means.cpython-37m-x86_64-linux-gnu.so "failed with the status output 1

Many Google searches have shown many reasons for this and none have removed this error.

My docker file contains:

RUN yum update -y && 
yum install -y 
# python
python3 
python3-devel 
python3-cython 
python-virtualenv 
python-devel 
# compilers
gcc 
gcc-c ++ 
postgresql-devel 
# utils
findutils 
Zip *: French 
# additional libraries for optimized linear algebra
atlas-devel 
atlas-sse3 
blas-devel 
lapack-devel

According to Google, which results should contain lblas?

Thank you.