Mediapipe and OpenCV installation on jetson nano developer kit


I had installed cuda compatible opencv on my nvidia jetson nano devkit. I confirmed using jtop that opencv is cuda compatible.

Later I had requirement of mediapipe and I used below script for mediapipe installation -

# setup - pre install include Python and pip
# ===================

sudo apt update
sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install -U pip testresources setuptools==49.6.0

# python libraries for Tensorflow
# ================================

sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran

# Install more Python libraries
# =================================

sudo pip3 install -U --no-deps numpy==1.19.4 future==0.18.2 mock==3.0.5 keras_preprocessing==1.1.2 keras_applications==1.0.8 gast==0.4.0 protobuf pybind11 cython pkgconfig

# part of Numpy -> store large amount of data in binary format
sudo env H5PY_SETUP_REQUIRES=0 pip3 install -U h5py==3.1.0

sudo apt-get install python3-opencv

#install media pipe from the source code

git clone
cd mediapipe

# install more libraries for the media pipe setup
sudo apt-get install -y libopencv-core-dev  libopencv-highgui-dev libopencv-calib3d-dev libopencv-features2d-dev libopencv-imgproc-dev libopencv-video-dev

# set permissions for the setup script file 
sudo chmod 744

# run installation from source code : about 30 minutes

# last step
sudo pip3 install opencv_contrib_python
git clone
cd mediapipe-bin

After doing this, I can import mediapipe but core getting dumped after importing opencv. Also, Opencv status is showing as missing in jtop monitoring screen.

How can I make sure both works together properly.


Please check if you are facing the same issue below:


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.