Official TensorFlow for Jetson Nano!

Ubuntu 20 is not required to run TensorFlow and is not supported yet. I suggest to stick with Ubuntu 18 for now. To install TensorFlow you need to run the commands listed in Python 3.6+JetPack4.5 section of Official TensorFlow for Jetson Nano! except the last line (assuming you want want TensorFlow 2 and do not need old TensorFlow 1.15).

I get the 404 error for now.

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://developer.download.nvidia.com/compute/redist/jp/v45/google-pasta/

I read somewhere TensorFlow is required for Ubuntu 20, obviously I was misinformed. I tried to upgrade to Ubuntu 20, only to have my kit bricked up. Finished installing Ubuntu 20 but after resetting only black screen with cursor flashing. I had to reflash the microSD for the umpteen time and install Jetpack 4.5. This reeks.

I tried to install TensorFlow with Python 3.7 and Jetpack 4.51 but the following message appeared:

sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
Reading package lists… Done
Building dependency tree
Reading state information… Done
zip is already the newest version (3.0-11build1).
zip set to manually installed.
zlib1g-dev is already the newest version (1:1.2.11.dfsg-0ubuntu2).
zlib1g-dev set to manually installed.
The following packages were automatically installed and are no longer required:
apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin
dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common
kde-window-manager kwin-common kwin-data kwin-x11 libdebian-installer4
libkdecorations2-5v5 libkdecorations2private5v5 libkf5globalaccelprivate5
libkf5idletime5 libkf5newstuff-data libkf5newstuff5 libkf5newstuffcore5
libkf5plasma5 libkf5waylandserver5 libkscreenlocker5
libkwin4-effect-builtins1 libkwineffects11 libkwinglutils11
libkwinxrenderutils11 libqgsttools-p1 libqt5designer5 libqt5help5
libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediaquick-p5
libqt5multimediawidgets5 libqt5opengl5 libqt5sql5 libqt5test5
libxcb-composite0 libxcb-damage0 os-prober python3-dbus.mainloop.pyqt5
python3-icu python3-pam python3-pyqt5 python3-pyqt5.qtsvg
python3-pyqt5.qtwebkit python3-sip qml-module-qtmultimedia rdate tasksel
tasksel-data
Use β€˜sudo apt autoremove’ to remove them.
The following additional packages will be installed:
gfortran-7 hdf5-helpers libaec-dev libaec0 libgfortran-7-dev libhdf5-100
libhdf5-cpp-100 libjpeg-turbo8-dev libsz2
Suggested packages:
gfortran-doc gfortran-7-doc libgfortran4-dbg libcoarrays-dev liblapack-doc
libhdf5-doc
The following NEW packages will be installed:
gfortran gfortran-7 hdf5-helpers hdf5-tools libaec-dev libaec0 libblas-dev
libgfortran-7-dev libhdf5-100 libhdf5-cpp-100 libhdf5-dev libhdf5-serial-dev
libjpeg-turbo8-dev libjpeg8-dev liblapack-dev libsz2
0 upgraded, 16 newly installed, 0 to remove and 1 not upgraded.
Need to get 13.4 MB of archives.
After this operation, 53.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.

Tried to install line by line, ran into problem on

$ sudo pip3 install -U numpy==1.16.1 future==0.18.2 mock==3.0.5 h5py==2.10.0 keras_preprocessing==1.1.1 keras_applications==1.0.8 gast==0.2.2 futures protobuf pybind11

below is what happened:

WARNING: The directory β€˜/home/pc1/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting numpy==1.16.1
Downloading numpy-1.16.1.zip (5.1 MB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5.1 MB 2.6 MB/s
Collecting future==0.18.2
Downloading future-0.18.2.tar.gz (829 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 829 kB 936 kB/s
Collecting mock==3.0.5
Downloading mock-3.0.5-py2.py3-none-any.whl (25 kB)
Collecting h5py==2.10.0
Downloading h5py-2.10.0.tar.gz (301 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 301 kB 25.2 MB/s
Collecting keras_preprocessing==1.1.1
Downloading Keras_Preprocessing-1.1.1-py2.py3-none-any.whl (42 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 42 kB 1.5 MB/s
Collecting keras_applications==1.0.8
Downloading Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 50 kB 12.8 MB/s
Collecting gast==0.2.2
Downloading gast-0.2.2.tar.gz (10 kB)
Collecting futures
Downloading futures-3.1.1-py3-none-any.whl (2.8 kB)
Requirement already satisfied: protobuf in /usr/lib/python3/dist-packages (3.0.0)
Collecting protobuf
Downloading protobuf-3.15.3-py2.py3-none-any.whl (173 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 173 kB 24.6 MB/s
Collecting pybind11
Downloading pybind11-2.6.2-py2.py3-none-any.whl (191 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 191 kB 6.6 MB/s
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from h5py==2.10.0) (1.11.0)
Building wheels for collected packages: future, gast, h5py, numpy
Building wheel for future (setup.py) … done
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=493275 sha256=7ca2988dca02fa5293a5f4a83858f5ab80dcdc1cd70fc7eb8adf6dc4f12fb2be
Stored in directory: /tmp/pip-ephem-wheel-cache-qr4q66j2/wheels/56/b0/fe/4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0
Building wheel for gast (setup.py) … done
Created wheel for gast: filename=gast-0.2.2-py3-none-any.whl size=7635 sha256=f7d42a3179f1878aa5bb2880759b792a8932f4e40d93e0cbd9ab3e4acc951c2b
Stored in directory: /tmp/pip-ephem-wheel-cache-qr4q66j2/wheels/21/7f/02/420f32a803f7d0967b48dd823da3f558c5166991bfd204eef3
Building wheel for h5py (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-w4ps5d1t/h5py_d22431a05a3d40ab90ae4c0da9071e19/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/tmp/pip-install-w4ps5d1t/h5py_d22431a05a3d40ab90ae4c0da9071e19/setup.pyβ€™β€œ'β€β€˜;f=getattr(tokenize, β€˜"β€™β€œβ€˜openβ€™β€β€™β€œβ€˜, open)(file);code=f.read().replace(β€™β€β€˜"’\r\nβ€™β€œ'β€β€˜, β€˜"’"’\nβ€™β€œ'β€β€˜);f.close();exec(compile(code, file, β€˜"β€™β€œβ€˜exec’”’"β€˜))’ bdist_wheel -d /tmp/pip-wheel-buafs1eq
cwd: /tmp/pip-install-w4ps5d1t/h5py_d22431a05a3d40ab90ae4c0da9071e19/
Complete output (115 lines):
WARNING: The directory β€˜/home/pc1/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
WARNING: The directory β€˜/home/pc1/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
creating build/lib.linux-aarch64-3.7/h5py
copying h5py/ipy_completer.py β†’ build/lib.linux-aarch64-3.7/h5py
copying h5py/version.py β†’ build/lib.linux-aarch64-3.7/h5py
copying h5py/init.py β†’ build/lib.linux-aarch64-3.7/h5py
copying h5py/h5py_warnings.py β†’ build/lib.linux-aarch64-3.7/h5py
copying h5py/highlevel.py β†’ build/lib.linux-aarch64-3.7/h5py
creating build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/datatype.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/compat.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/files.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/dims.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/init.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/group.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/selections.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/vds.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/filters.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/selections2.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/dataset.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/base.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
copying h5py/_hl/attrs.py β†’ build/lib.linux-aarch64-3.7/h5py/_hl
creating build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_file_image.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_h5d_direct_chunk.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_dataset_getitem.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_dataset.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/init.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_threads.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_completions.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_h5pl.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_group.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_dataset_swmr.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_file2.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_h5f.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_base.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_file.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_h5.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_h5t.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_attribute_create.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_dimension_scales.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_attrs.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_attrs_data.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_dims_dimensionproxy.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_deprecation.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_filters.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_datatype.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_selections.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_slicing.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_dtype.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/common.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_h5p.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
copying h5py/tests/test_objects.py β†’ build/lib.linux-aarch64-3.7/h5py/tests
creating build/lib.linux-aarch64-3.7/h5py/tests/test_vds
copying h5py/tests/test_vds/test_highlevel_vds.py β†’ build/lib.linux-aarch64-3.7/h5py/tests/test_vds
copying h5py/tests/test_vds/test_virtual_source.py β†’ build/lib.linux-aarch64-3.7/h5py/tests/test_vds
copying h5py/tests/test_vds/init.py β†’ build/lib.linux-aarch64-3.7/h5py/tests/test_vds
copying h5py/tests/test_vds/test_lowlevel_vds.py β†’ build/lib.linux-aarch64-3.7/h5py/tests/test_vds
running build_ext
Traceback (most recent call last):
File β€œ/usr/lib/python3/dist-packages/numpy/core/init.py”, line 16, in
from . import multiarray
ImportError: cannot import name β€˜multiarray’ from β€˜numpy.core’ (/usr/lib/python3/dist-packages/numpy/core/init.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File β€œβ€, line 1, in
File β€œ/tmp/pip-install-w4ps5d1t/h5py_d22431a05a3d40ab90ae4c0da9071e19/setup.py”, line 159, in
cmdclass = CMDCLASS,
File β€œ/usr/local/lib/python3.7/dist-packages/setuptools/init.py”, line 163, in setup
return distutils.core.setup(**attrs)
File β€œ/usr/lib/python3.7/distutils/core.py”, line 148, in setup
dist.run_commands()
File β€œ/usr/lib/python3.7/distutils/dist.py”, line 966, in run_commands
self.run_command(cmd)
File β€œ/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File β€œ/usr/lib/python3/dist-packages/wheel/bdist_wheel.py”, line 204, in run
self.run_command(β€˜build’)
File β€œ/usr/lib/python3.7/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File β€œ/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File β€œ/usr/lib/python3.7/distutils/command/build.py”, line 135, in run
self.run_command(cmd_name)
File β€œ/usr/lib/python3.7/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File β€œ/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File β€œ/tmp/pip-install-w4ps5d1t/h5py_d22431a05a3d40ab90ae4c0da9071e19/setup_build.py”, line 162, in run
import numpy
File β€œ/usr/lib/python3/dist-packages/numpy/init.py”, line 142, in
from . import add_newdocs
File β€œ/usr/lib/python3/dist-packages/numpy/add_newdocs.py”, line 13, in
from numpy.lib import add_newdoc
File β€œ/usr/lib/python3/dist-packages/numpy/lib/init.py”, line 8, in
from .type_check import *
File β€œ/usr/lib/python3/dist-packages/numpy/lib/type_check.py”, line 11, in
import numpy.core.numeric as _nx
File β€œ/usr/lib/python3/dist-packages/numpy/core/init.py”, line 26, in
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try git clean -xdf (removes all
files not under version control). Otherwise reinstall numpy.

Original error was: cannot import name β€˜multiarray’ from β€˜numpy.core’ (/usr/lib/python3/dist-packages/numpy/core/init.py)


ERROR: Failed building wheel for h5py
Running setup.py clean for h5py
Building wheel for numpy (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.pyβ€™β€œ'β€β€˜;f=getattr(tokenize, β€˜"β€™β€œβ€˜openβ€™β€β€™β€œβ€˜, open)(file);code=f.read().replace(β€™β€β€˜"’\r\nβ€™β€œ'β€β€˜, β€˜"’"’\nβ€™β€œ'β€β€˜);f.close();exec(compile(code, file, β€˜"β€™β€œβ€˜exec’”’"β€˜))’ bdist_wheel -d /tmp/pip-wheel-jp2lxh2k
cwd: /tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/
Complete output (313 lines):
Running from numpy source directory.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in [β€˜/usr/local/lib’, β€˜/usr/lib’, β€˜/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

blis_info:
customize UnixCCompiler
libraries blis not found in [β€˜/usr/local/lib’, β€˜/usr/lib’, β€˜/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in [β€˜/usr/local/lib’, β€˜/usr/lib’, β€˜/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas not found in [β€˜/usr/local/lib’, β€˜/usr/lib’, β€˜/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in [β€˜/usr/local/lib’, β€˜/usr/lib’, β€˜/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in [β€˜/usr/local/lib’, β€˜/usr/lib’, β€˜/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

atlas_blas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in [β€˜/usr/local/lib’, β€˜/usr/lib’, β€˜/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

accelerate_info:
NOT AVAILABLE

/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/system_info.py:636: 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()
blas_info:
customize UnixCCompiler
customize UnixCCompiler
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

creating /tmp/tmpbj4eqs58/tmp
creating /tmp/tmpbj4eqs58/tmp/tmpbj4eqs58
compile options: β€˜-I/usr/local/include -I/usr/include -c’
aarch64-linux-gnu-gcc: /tmp/tmpbj4eqs58/source.c
aarch64-linux-gnu-gcc -pthread /tmp/tmpbj4eqs58/tmp/tmpbj4eqs58/source.o -lcblas -o /tmp/tmpbj4eqs58/a.out
/usr/bin/ld: cannot find -lcblas
collect2: error: ld returned 1 exit status
aarch64-linux-gnu-gcc -pthread /tmp/tmpbj4eqs58/tmp/tmpbj4eqs58/source.o -lblas -o /tmp/tmpbj4eqs58/a.out
customize UnixCCompiler
FOUND:
libraries = [β€˜blas’, β€˜blas’]
library_dirs = [β€˜/usr/lib/aarch64-linux-gnu’]
include_dirs = [β€˜/usr/local/include’, β€˜/usr/include’]
language = c
define_macros = [(β€˜HAVE_CBLAS’, None)]

FOUND:
  define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
  libraries = ['blas', 'blas']
  library_dirs = ['/usr/lib/aarch64-linux-gnu']
  include_dirs = ['/usr/local/include', '/usr/include']
  language = c

/bin/sh: 1: svnversion: not found
non-existing path in β€˜numpy/distutils’: β€˜site.cfg’
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

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/lib/aarch64-linux-gnu
<class β€˜numpy.distutils.system_info.atlas_3_10_threads_info’>
NOT AVAILABLE

atlas_3_10_info:
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib/aarch64-linux-gnu
<class β€˜numpy.distutils.system_info.atlas_3_10_info’>
NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/aarch64-linux-gnu
<class β€˜numpy.distutils.system_info.atlas_threads_info’>
NOT AVAILABLE

atlas_info:
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib/aarch64-linux-gnu
<class β€˜numpy.distutils.system_info.atlas_info’>
NOT AVAILABLE

/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/system_info.py:636: 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
customize UnixCCompiler
FOUND:
libraries = [β€˜lapack’, β€˜lapack’]
library_dirs = [β€˜/usr/lib/aarch64-linux-gnu’]
language = f77

FOUND:
  define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
  libraries = ['lapack', 'lapack', 'blas', 'blas']
  library_dirs = ['/usr/lib/aarch64-linux-gnu']
  language = c
  include_dirs = ['/usr/local/include', '/usr/include']

/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: β€˜define_macros’
warnings.warn(msg)
running bdist_wheel
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
creating build
creating build/src.linux-aarch64-3.7
creating build/src.linux-aarch64-3.7/numpy
creating build/src.linux-aarch64-3.7/numpy/distutils
building library β€œnpymath” sources
get_default_fcompiler: matching types: β€˜[β€˜gnu95’, β€˜intel’, β€˜lahey’, β€˜pg’, β€˜absoft’, β€˜nag’, β€˜vast’, β€˜compaq’, β€˜intele’, β€˜intelem’, β€˜gnu’, β€˜g95’, β€˜pathf95’, β€˜nagfor’]’
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: β€˜-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.7m -c’
aarch64-linux-gnu-gcc: _configtest.c
aarch64-linux-gnu-gcc -pthread _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest.o.d _configtest
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: β€˜-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.7m -c’
aarch64-linux-gnu-gcc: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function β€˜exp’ [-Wbuiltin-declaration-mismatch]
int exp (void);
^~~
aarch64-linux-gnu-gcc -pthread _configtest.o -o _configtest
_configtest.o: In function main': /tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/_configtest.c:6: undefined reference to exp’
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o _configtest.o.d
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: β€˜-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.7m -c’
aarch64-linux-gnu-gcc: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function β€˜exp’ [-Wbuiltin-declaration-mismatch]
int exp (void);
^~~
aarch64-linux-gnu-gcc -pthread _configtest.o -lm -o _configtest
success!
removing: _configtest.c _configtest.o _configtest.o.d _configtest
creating build/src.linux-aarch64-3.7/numpy/core
creating build/src.linux-aarch64-3.7/numpy/core/src
creating build/src.linux-aarch64-3.7/numpy/core/src/npymath
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/npymath/npy_math_internal.h
adding β€˜build/src.linux-aarch64-3.7/numpy/core/src/npymath’ to include_dirs.
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/npymath/ieee754.c
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/npymath/npy_math_complex.c
None - nothing done with h_files = [β€˜build/src.linux-aarch64-3.7/numpy/core/src/npymath/npy_math_internal.h’]
building library β€œnpysort” sources
creating build/src.linux-aarch64-3.7/numpy/core/src/common
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/common/npy_sort.h
adding β€˜build/src.linux-aarch64-3.7/numpy/core/src/common’ to include_dirs.
creating build/src.linux-aarch64-3.7/numpy/core/src/npysort
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/npysort/quicksort.c
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/npysort/mergesort.c
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/npysort/heapsort.c
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/common/npy_partition.h
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/npysort/selection.c
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/common/npy_binsearch.h
conv_template:> build/src.linux-aarch64-3.7/numpy/core/src/npysort/binsearch.c
None - nothing done with h_files = [β€˜build/src.linux-aarch64-3.7/numpy/core/src/common/npy_sort.h’, β€˜build/src.linux-aarch64-3.7/numpy/core/src/common/npy_partition.h’, β€˜build/src.linux-aarch64-3.7/numpy/core/src/common/npy_binsearch.h’]
building extension β€œnumpy.core._dummy” sources
Generating build/src.linux-aarch64-3.7/numpy/core/include/numpy/config.h
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: β€˜-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.7m -c’
aarch64-linux-gnu-gcc: _configtest.c
_configtest.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File β€œβ€, line 1, in
File β€œ/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.py”, line 415, in
setup_package()
File β€œ/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.py”, line 407, in setup_package
setup(**metadata)
File β€œ/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/core.py”, line 171, in setup
return old_setup(**new_attr)
File β€œ/usr/local/lib/python3.7/dist-packages/setuptools/init.py”, line 163, in setup
return distutils.core.setup(**attrs)
File β€œ/usr/lib/python3.7/distutils/core.py”, line 148, in setup
dist.run_commands()
File β€œ/usr/lib/python3.7/distutils/dist.py”, line 966, in run_commands
self.run_command(cmd)
File β€œ/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File β€œ/usr/lib/python3/dist-packages/wheel/bdist_wheel.py”, line 204, in run
self.run_command(β€˜build’)
File β€œ/usr/lib/python3.7/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File β€œ/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File β€œ/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build.py”, line 47, in run
old_build.run(self)
File β€œ/usr/lib/python3.7/distutils/command/build.py”, line 135, in run
self.run_command(cmd_name)
File β€œ/usr/lib/python3.7/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File β€œ/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File β€œ/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build_src.py”, line 148, in run
self.build_sources()
File β€œ/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build_src.py”, line 165, in build_sources
self.build_extension_sources(ext)
File β€œ/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build_src.py”, line 322, in build_extension_sources
sources = self.generate_sources(sources, ext)
File β€œ/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build_src.py”, line 375, in generate_sources
source = func(extension, build_dir)
File β€œnumpy/core/setup.py”, line 423, in generate_config_h
moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
File β€œnumpy/core/setup.py”, line 47, in check_types
out = check_types(*a, **kw)
File β€œnumpy/core/setup.py”, line 281, in check_types
β€œinstall {0}-dev|{0}-devel.”.format(python))
SystemError: Cannot compile β€˜Python.h’. Perhaps you need to install python-dev|python-devel.

ERROR: Failed building wheel for numpy
Running setup.py clean for numpy
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.pyβ€™β€œ'β€β€˜;f=getattr(tokenize, β€˜"β€™β€œβ€˜openβ€™β€β€™β€œβ€˜, open)(file);code=f.read().replace(β€™β€β€˜"’\r\nβ€™β€œ'β€β€˜, β€˜"’"’\nβ€™β€œ'β€β€˜);f.close();exec(compile(code, file, β€˜"β€™β€œβ€˜exec’”’"β€˜))’ clean --all
cwd: /tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5
Complete output (10 lines):
Running from numpy source directory.

setup.py clean is not supported, use one of the following instead:

- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
                    files that aren't checked into the git repo)

Add --force to your command to use it anyway if you must (unsupported).


ERROR: Failed cleaning build dir for numpy
Successfully built future gast
Failed to build h5py numpy
Installing collected packages: numpy, h5py, pybind11, protobuf, mock, keras-preprocessing, keras-applications, gast, futures, future
Attempting uninstall: numpy
Found existing installation: numpy 1.13.3
Uninstalling numpy-1.13.3:
Successfully uninstalled numpy-1.13.3
Running setup.py install for numpy … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/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-record-jeoc_pok/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/numpy
cwd: /tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/
Complete output (306 lines):
Running from numpy source directory.

Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:

  - `pip install .`       (from a git repo or downloaded source
                           release)
  - `pip install numpy`   (last NumPy release on PyPi)


blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
  libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

blis_info:
customize UnixCCompiler
  libraries blis not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

openblas_info:
customize UnixCCompiler
customize UnixCCompiler
  libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
  libraries tatlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_blas_info:
customize UnixCCompiler
  libraries satlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

atlas_blas_info:
customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

accelerate_info:
  NOT AVAILABLE

/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/system_info.py:636: 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()
blas_info:
customize UnixCCompiler
customize UnixCCompiler
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

creating /tmp/tmpy02xfm3w/tmp
creating /tmp/tmpy02xfm3w/tmp/tmpy02xfm3w
compile options: '-I/usr/local/include -I/usr/include -c'
aarch64-linux-gnu-gcc: /tmp/tmpy02xfm3w/source.c
aarch64-linux-gnu-gcc -pthread /tmp/tmpy02xfm3w/tmp/tmpy02xfm3w/source.o -lcblas -o /tmp/tmpy02xfm3w/a.out
/usr/bin/ld: cannot find -lcblas
collect2: error: ld returned 1 exit status
aarch64-linux-gnu-gcc -pthread /tmp/tmpy02xfm3w/tmp/tmpy02xfm3w/source.o -lblas -o /tmp/tmpy02xfm3w/a.out
customize UnixCCompiler
  FOUND:
    libraries = ['blas', 'blas']
    library_dirs = ['/usr/lib/aarch64-linux-gnu']
    include_dirs = ['/usr/local/include', '/usr/include']
    language = c
    define_macros = [('HAVE_CBLAS', None)]

  FOUND:
    define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
    libraries = ['blas', 'blas']
    library_dirs = ['/usr/lib/aarch64-linux-gnu']
    include_dirs = ['/usr/local/include', '/usr/include']
    language = c

/bin/sh: 1: svnversion: not found
non-existing path in 'numpy/distutils': 'site.cfg'
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

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries tatlas,tatlas not found in /usr/local/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
  libraries tatlas,tatlas not found in /usr/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
  libraries tatlas,tatlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
  NOT AVAILABLE

atlas_3_10_info:
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries satlas,satlas not found in /usr/local/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
  libraries satlas,satlas not found in /usr/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
  libraries satlas,satlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_info'>
  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_threads_info'>
  NOT AVAILABLE

atlas_info:
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in /usr/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_info'>
  NOT AVAILABLE

/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/system_info.py:636: 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
customize UnixCCompiler
  FOUND:
    libraries = ['lapack', 'lapack']
    library_dirs = ['/usr/lib/aarch64-linux-gnu']
    language = f77

  FOUND:
    define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
    libraries = ['lapack', 'lapack', 'blas', 'blas']
    library_dirs = ['/usr/lib/aarch64-linux-gnu']
    language = c
    include_dirs = ['/usr/local/include', '/usr/include']

/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.7m -c'
aarch64-linux-gnu-gcc: _configtest.c
aarch64-linux-gnu-gcc -pthread _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest.o.d _configtest
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.7m -c'
aarch64-linux-gnu-gcc: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function β€˜exp’ [-Wbuiltin-declaration-mismatch]
 int exp (void);
     ^~~
aarch64-linux-gnu-gcc -pthread _configtest.o -o _configtest
_configtest.o: In function `main':
/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/_configtest.c:6: undefined reference to `exp'
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o _configtest.o.d
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.7m -c'
aarch64-linux-gnu-gcc: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function β€˜exp’ [-Wbuiltin-declaration-mismatch]
 int exp (void);
     ^~~
aarch64-linux-gnu-gcc -pthread _configtest.o -lm -o _configtest
success!
removing: _configtest.c _configtest.o _configtest.o.d _configtest
  adding 'build/src.linux-aarch64-3.7/numpy/core/src/npymath' to include_dirs.
None - nothing done with h_files = ['build/src.linux-aarch64-3.7/numpy/core/src/npymath/npy_math_internal.h']
building library "npysort" sources
  adding 'build/src.linux-aarch64-3.7/numpy/core/src/common' to include_dirs.
None - nothing done with h_files = ['build/src.linux-aarch64-3.7/numpy/core/src/common/npy_sort.h', 'build/src.linux-aarch64-3.7/numpy/core/src/common/npy_partition.h', 'build/src.linux-aarch64-3.7/numpy/core/src/common/npy_binsearch.h']
building extension "numpy.core._dummy" sources
Generating build/src.linux-aarch64-3.7/numpy/core/include/numpy/config.h
C compiler: aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-rNwl2C/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.7m -c'
aarch64-linux-gnu-gcc: _configtest.c
_configtest.c:1:10: fatal error: Python.h: No such file or directory
 #include <Python.h>
          ^~~~~~~~~~
compilation terminated.
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.py", line 415, in <module>
    setup_package()
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.py", line 407, in setup_package
    setup(**metadata)
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/core.py", line 171, in setup
    return old_setup(**new_attr)
  File "/usr/local/lib/python3.7/dist-packages/setuptools/__init__.py", line 163, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/install.py", line 62, in run
    r = self.setuptools_run()
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/install.py", line 36, in setuptools_run
    return distutils_install.run(self)
  File "/usr/lib/python3.7/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build.py", line 47, in run
    old_build.run(self)
  File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build_src.py", line 148, in run
    self.build_sources()
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build_src.py", line 165, in build_sources
    self.build_extension_sources(ext)
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build_src.py", line 322, in build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/numpy/distutils/command/build_src.py", line 375, in generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 423, in generate_config_h
    moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
  File "numpy/core/setup.py", line 47, in check_types
    out = check_types(*a, **kw)
  File "numpy/core/setup.py", line 281, in check_types
    "install {0}-dev|{0}-devel.".format(python))
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
----------------------------------------

Rolling back uninstall of numpy
Moving to /usr/lib/python3/dist-packages/numpy
from /usr/lib/python3/dist-packages/~umpy
Moving to /usr/lib/python3/dist-packages/numpy-1.13.3.egg-info
from /usr/lib/python3/dist-packages/~umpy-1.13.3.egg-info
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/tmp/pip-install-w4ps5d1t/numpy_13677e0b227f4a058d848d00091749f5/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-record-jeoc_pok/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/numpy Check the logs for full command output.

Please help thanks.

1 Like

Sounds like during upgrade process you accidentally replaced the kernel build by Nvidia for Jetson Nano with standard kernel build for Ubuntu (without Nvidia patches and drivers), so this is expected result. Upgrading a kernel to an unsupported version is generally not an easy job on an embedded system, including Jetson Nano. And even if you keep original kernel, upgrading to unsupported version of Ubuntu is not easy either and not without issues. Until Ubuntu 20 is officially supported, it is better to keep using Ubuntu 18, especially for those who do not have advanced knowledge about Jetson Nano and Linux in general.

I have Python 3.6.9, which is what I got by default, and I have no issues with installing and running TensorFlow with JetPack 4.5.1. I do not think Python 3.7 is officially supported yet so I suggest to try again with Python 3.6.

P.S. When you need to share long log files, it is better to use https://pastebin.com/ and link to it than copy and pasting inline with bad formatting which makes your log and the forum thread less readable.

So I guess I will have to flash again?..sigh…

So I reflashed and installed Jetpack 4.51 and Python 3.6. Following message came up.

Installing 3.6 if not installed and uninstalling Python 3.7 would be probably faster, but flashing works too to get the system back to the default state.

Quotes from your log file:

pc1@pc1-desktop:~$ $ sudo pip3 install --pre --extra-index-url Index of /compute/redist/jp/v45 tensorflow
bash: $: command not found

$ means you are supposed to run the command as non-root user. You are not supposed to actually type $ as a command. This is common notation so it is useful to know it. My guess why other commands did not have $ prefix but only the last two do have it, it is because you are supposed to choose only one instead of blindly trying copy and paste the whole code block without understanding what each line does. If unsure what version of tensorflow to install, install tensorflow 2.

pc1@pc1-desktop:~$ $ sudo pip3 install --pre --extra-index-url Index of /compute/redist/jp/v45 β€˜tensorflow<2’
bash: 2’: No such file or directory

Using backticks in shell instead of quotes is like writing $(tensorflow<2) instead of 'tensorflow<2' or "tensorflow<2". Basically you are trying to redirect content of non-existing file β€œ2” in current directory to command β€œtensorflow” (which probably does not exist either but execution has stopped at the first error), and then use output of that with non-existent command $. You are not supposed to type the dollar sign and you need to use ' or " instead of backticks. But are you sure you even need old tensorflow 1.15? If you want tensorflow 2, then you do not need to install 1.15.

Thanks for the advice Lissanro. Perhaps it’s best to explain what I’m trying to do first. I’m trying to use machine learning to run MetaTrader 5. I’ve gotten these kits since last December and trying to make it work ever since. I’m no programmer nor Python OS environmental developer. I think either TensorFlow or Pytorch can do what I’m trying to do, but I’ve been having terrible experience. Nvidia should have some automated installing package that could check on what component you have and download and install, but I haven’t see it, as it tout itself as leader in automation. So far I’m trying to see what python does and copy and pasting all these commands, at same time trying to see how to run Tensorflow and to see what it does.

could you show me what command to run as a non-root user? every time I open terminal it comes pc1@pc1-desktop:$

Thank you.

Also, I’m trying to network these kits together to run a parallel supercomputer. So far I have these kits connected to an 8 outlet POE but they’re not really communicating to each other. I downloaded Putty and attempt to network them together, but they don’t really do what I wanted to do. Any help is appreciated.

I will add more kits/modules as time goes on, if it works. But I can’t even get it to work the way I wanted to. Terrible.

@hpc88323, please open a new topic about your networking issues, thanks.

The automated delivery mechanism is the Docker containers, they come with PyTorch/TensorFlow/ect pre-installed. https://elinux.org/Jetson_Zoo#Docker_Containers

To install TensorFlow directly, follow these instructions: https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html#prereqs

Omit the leading $ from the commands if you are copy and pasting them.

Thanks for reply. I tried the docker pull command and this is what happened:

docker pull nvcr.io/nvidia/l4t-tensorflow:r32.5.0-tf2.3-py3
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=nvcr.io%2Fnvidia%2Fl4t-tensorflow&tag=r32.5.0-tf2.3-py3: dial unix /var/run/docker.sock: connect: permission denied

I apologize, I’m very novice to Ubuntu/Unix etc. I don’t know how to switch to root user and other user. If you could can you type the commands to switch and exactly what to download and install? I only know how to copy and paste and do minor command changes. Thank you.

Hi @hpc88323, run the docker commands with sudo

Ok, done. Following apeared:

pc1@pc1-desktop:~$ sudo docker pull nvcr.io/nvidia/l4t-tensorflow:r32.5.0-tf2.3-py3
[sudo] password for pc1:
r32.5.0-tf2.3-py3: Pulling from nvidia/l4t-tensorflow
5000a6c32c5a: Pulling fs layer
8e855b69096a: Pulling fs layer
8db8dbbd4bb9: Pulling fs layer
833dc3235950: Waiting
f79d264135a3: Pull complete
1c40f77bb35b: Pull complete
1990ecf0bfb7: Pull complete
c8ffbfd7f0aa: Pull complete
ba785779122a: Pull complete
024ce79b6790: Pull complete
9b09da3b5483: Pull complete
17f974a43cf9: Pull complete
211b56b73ff1: Pull complete
78aca4be1f3b: Pull complete
95f34310bbda: Pull complete
678c9d1557e9: Pull complete
ec17ad7cab01: Pull complete
08fb1eee5328: Pull complete
4d4b03e45e85: Pull complete
890acf9522e1: Pull complete
4285cec48fa4: Pull complete
b2134f7c52d6: Pull complete
fc89162c3e71: Pull complete
6207db6c0808: Pull complete
ff42b2cc8554: Pull complete
cac51dab2a29: Pull complete
358194fb67c2: Pull complete
Digest: sha256:e1a9adc3cc3502a0b162644b45cd17090f23a13ca51bb85a04fc803fefafe7a6
Status: Downloaded newer image for nvcr.io/nvidia/l4t-tensorflow:r32.5.0-tf2.3-py3
nvcr.io/nvidia/l4t-tensorflow:r32.5.0-tf2.3-py3

What’s next? Thank you.

The directions to run the container are found here:

https://ngc.nvidia.com/catalog/containers/nvidia:l4t-tensorflow

sudo docker run -it --rm --runtime nvidia --network host nvcr.io/nvidia/l4t-tensorflow:r32.5.0-tf2.3-py3
1 Like

Did that, and below is what happened:

pc1@pc1-desktop:~$ sudo docker run -it --rm --runtime nvidia --network host nvcr.io/nvidia/l4t-tensorflow:r32.5.0-tf2.3-py3
[sudo] password for pc1:
root@pc1-desktop:/#

Please show next thanks.

Your terminal is now running inside the container. Run python3 to start an interactive python interpreter and you will be able to import tensorflow