Jetson Nano cannot import Mediapipe


I’m trying to test out if mediapipe sample works fine on Jetson Nano.

I installed Mediapipe with python3 -m pip install mediapipe on Jetson but it throws an error whenever I try to test it with import mediapipe or run the sample given in mediapipe-bin.

Here’s what I see on the nano terminal:

dayeon@dayeon-desktop:~/mediapipe-python-sample$ python3
Traceback (most recent call last):
  File "", line 8, in <module>
    import mediapipe as mp
  File "/home/dayeon/.local/lib/python3.7/site-packages/mediapipe/", line 17, in <module>
    import as solutions
  File "/home/dayeon/.local/lib/python3.7/site-packages/mediapipe/python/solutions/", line 17, in <module>
  File "/home/dayeon/.local/lib/python3.7/site-packages/mediapipe/python/solutions/", line 20, in <module>
    from import DrawingSpec
  File "/home/dayeon/.local/lib/python3.7/site-packages/mediapipe/python/solutions/", line 22, in <module>
    import matplotlib.pyplot as plt
  File "/usr/lib/python3/dist-packages/matplotlib/", line 32, in <module>
    import matplotlib.colorbar
  File "/usr/lib/python3/dist-packages/matplotlib/", line 32, in <module>
    import matplotlib.artist as martist
  File "/usr/lib/python3/dist-packages/matplotlib/", line 16, in <module>
    from .path import Path
  File "/usr/lib/python3/dist-packages/matplotlib/", line 25, in <module>
    from . import _path, rcParams
ImportError: cannot import name '_path' from 'matplotlib' (/usr/lib/python3/dist-packages/matplotlib/

Please help me solve this problem – I’m working on this for two days now :,)…
Thank you in advance.

You may find some topics about this on the forum such as:

solved that specific error by upgrading matplotlib with python3 -m pip install --upgrade matplotlib.

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