Jetson Nano cannot import Mediapipe

Hello

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

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.