Scipy not installing !!

I am using following command to install scipy

pip3 install scipy. It downloaded and failing during build with following error.

compile options: ‘-DPOCKETFFT_PTHREADS -I/root/.local/include/python3.6m -I/usr/local/include/python3.6 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.6m -c’
extra options: ‘-std=c++14 -fvisibility=hidden’
aarch64-linux-gnu-g++: scipy/fft/_pocketfft/pypocketfft.cxx
scipy/fft/_pocketfft/pypocketfft.cxx:15:10: fatal error: pybind11/pybind11.h: No such file or directory
#include <pybind11/pybind11.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scipy/fft/_pocketfft/pypocketfft.cxx:15:10: fatal error: pybind11/pybind11.h: No such file or directory
#include <pybind11/pybind11.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: Command “aarch64-linux-gnu-g++ -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPOCKETFFT_PTHREADS -I/root/.local/include/python3.6m -I/usr/local/include/python3.6 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.6m -c scipy/fft/_pocketfft/pypocketfft.cxx -o build/temp.linux-aarch64-3.6/scipy/fft/_pocketfft/pypocketfft.o -MMD -MF build/temp.linux-aarch64-3.6/scipy/fft/_pocketfft/pypocketfft.o.d -std=c++14 -fvisibility=hidden” failed with exit status 1

----------------------------------------

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-shmnm3ou/scipy/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-5f6qtwby-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-shmnm3ou/scipy/

hi, use version 1.1.0.
This works for me, if not uninstalll enum34, but don’t ask me why :)

sudo python3 -m pip install scipy==1.1.0

What environment are you running in? If it helps, Scipy comes pre-installed in the TF1 and TF2 19.12 NGC containers.

hi!

sudo apt install pybind11-dev
sudo -H pip3 install scipy