Install of Keras and Scipy not completing

i am trying to install Tensorflow and Keras on the Nano and while I have installed Numpy and Tensorflow ok, I cannot seem to install either Keras or Scipy.

I am using:

sudo pip3 install keras

but get: an error that cetain libraries are missing. Have run apt update and upgrade several times.

/home/jcallum/.local/lib/python3.6/site-packages/numpy/distutils/system_info.py:638: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
lapack_info:
customize UnixCCompiler
libraries lapack not found in [’/usr/local/lib’, ‘/usr/lib’, ‘/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

/home/jcallum/.local/lib/python3.6/site-packages/numpy/distutils/system_info.py:638: UserWarning:
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  self.calc_info()
lapack_src_info:
  NOT AVAILABLE

Any help appreciated.

John

P.S. I see on another thread that it may be that there are no binaries for keras and scipy and they must be compiled from source? Why would that be I wonder.

Hi,

The issue is that there is no lapack library in your environment.

libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE

Could you try to install the library first and try it again?

sudo apt-get update
sudo apt-get install -y build-essential libatlas-base-dev

Thanks.

Thanks. That worked. I was also missing Fortran but now I have installed both scipy and keras.