$ sudo apt-get update
$ sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
$ sudo apt-get install python3-pip
$ sudo pip3 install -U pip testresources setuptools
$ sudo ln -s /usr/include/locale.h /usr/include/xlocale.h
$ pip3 install Cython==0.29.36
$ pip3 install pkgconfig
$ git clone https://github.com/h5py/h5py.git
$ cd h5py
$ git checkout 3.1.0
$ git cherry-pick 3bf862daa4ebeb2eeaf3a0491e05f5415c1818e4
$ H5PY_SETUP_REQUIRES=0 pip3 install . --no-deps --no-build-isolation
$ sudo pip3 install -U numpy==1.19.4 future mock keras_preprocessing keras_applications gast==0.2.1 protobuf pybind11 packaging
$ sudo pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v461 tensorflow
$ sudo apt-get install python3-opencv
$ sudo apt-get remove python3-opencv
$ git clone https://github.com/JetsonHacksNano/installSwapfile.git
$ cd installSwapfile
$ ./installSwapfile.sh
然後重開機
使用無頭模式
$ cd
$ git clone https://github.com/google/mediapipe.git
$ cd mediapipe
$ sudo apt-get install -y libopencv-core-dev libopencv-highgui-dev libopencv-calib3d-dev libopencv-features2d-dev libopencv-imgproc-dev libopencv-video-dev
$ sudo chmod 744 setup_opencv.sh
$ ./setup_opencv.sh
接下來要等30-60分鐘才會完成
$ sudo pip3 install opencv_contrib_python
$ sudo apt install curl
下載壓縮檔到 下載 資料夾 https://drive.google.com/file/d/1lHr9Krznst1ugLF_ElWGCNi_Y4AmEexx/view?usp=sharing
$ sudo apt install unzip
$ unzip mediapipe-bin.zip
$ cd mediapipe-bin
$ sudo pip3 install numpy-1.19.4-cp36-none-manylinux2014_aarch64.whl mediapipe-0.8.5_cuda102-cp36-none-linux_aarch64.whl
$ pip3 install dataclasses