Hey everyone,
I faced a problem with installing SciPy on Jetson AGX Xavier. Since I could not find a solution online, maybe someone here has an idea what I am doing wrong.
The command I use for installing SciPy is
$ sudo -H pip3 install scipy
I recieve an error (see attached file), which starts with:
$ sudo -H pip3 install scipy
Collecting scipy
Downloading https://files.pythonhosted.org/packages/04/ab/e2eb3e3f90b9363040a3d885ccc5c79fe20c5b8a3caa8fe3bf47ff653260/scipy-1.4.1.tar.gz (24.6MB)
|ββββββββββββββββββββββββββββββββ| 24.6MB 10.8MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: scipy
Building wheel for scipy (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpnon3db0r
cwd: /tmp/pip-install-awfrr_cr/scipy
Complete output (4941 lines):
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE
openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE
flame_info:
customize UnixCCompiler
libraries flame not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE
I assume that it can not find libraries like openblas and lapack.
After searching online for a solution I tried
$ sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
which worked, but made no difference in the resulting error code.
Therefore I checked the library location (for example for libblas) with dpkg:
~$ dpkg -L libblas-dev
(s.hier: https://askubuntu.com/questions/115500/how-to-find-location-of-installed-library)
/.
/usr
/usr/include
/usr/include/aarch64-linux-gnu
/usr/include/aarch64-linux-gnu/cblas-netlib.h
/usr/include/aarch64-linux-gnu/cblas_f77.h
/usr/include/aarch64-linux-gnu/cblas_mangling.h
/usr/lib
/usr/lib/aarch64-linux-gnu
/usr/lib/aarch64-linux-gnu/blas
/usr/lib/aarch64-linux-gnu/blas/libblas.a
/usr/lib/aarch64-linux-gnu/pkgconfig
/usr/lib/aarch64-linux-gnu/pkgconfig/blas-netlib.pc
/usr/share
/usr/share/doc
/usr/share/doc/libblas-dev
/usr/share/doc/libblas-dev/copyright
/usr/lib/aarch64-linux-gnu/blas/libblas.so
/usr/share/doc/libblas-dev/changelog.Debian.gz
Apparently none of the locations (β/usr/local/libβ, β/usr/libβ, β/usr/lib/aarch64-linux-gnuβ) called in the upper error is listed here. Could it be a problem that the script is searching on the wrong place to find the libraries?
Additionally I tried
sudo pip install git+https://github.com/scikit-learn/scikit-learn.git
and also
pip3 install --upgrade setuptools
sudo pip3 install -U setuptools
(requirement already satisfied)
sudo apt-get install libpcap-dev libpq-dev
sudo pip3 install cython
(already satisfied)
and also
pip install --upgrade pip
python3 -m pip install --upgrade pip
Is there anyone who has an idea what could be wrong or what I could change?
SameScipyError.txt (272 KB)