Cannot import mediapipe – "ModuleNotFoundError: No module named 'mediapipe'"
Question:
I have installed mediapipe , but I can’t import it.
pip3 install mediapipe==0.8.4.0
pip3 list
mediapipe == 0.8.4
numpy == 1.23.3
opencv-contrib-python == 4.6.0.66
tensorflow == 2.10.0
python --version
Python 3.9.6
I try to runn this in the VS Code editor on Mac(Intel)
import cv2
import mediapipe as mp
and I get this error:
import mediapipe as mp
ModuleNotFoundError: No module named 'mediapipe'
Answers:
As far as I know, the Python interpreter in VSCode must be set to the correct version 3.9.6. Simply Ctrl+Shift+P and search for Python: Select Interpreter
I have installed mediapipe , but I can’t import it.
pip3 install mediapipe==0.8.4.0
pip3 list
mediapipe == 0.8.4
numpy == 1.23.3
opencv-contrib-python == 4.6.0.66
tensorflow == 2.10.0
python --version
Python 3.9.6
I try to runn this in the VS Code editor on Mac(Intel)
import cv2
import mediapipe as mp
and I get this error:
import mediapipe as mp
ModuleNotFoundError: No module named 'mediapipe'
As far as I know, the Python interpreter in VSCode must be set to the correct version 3.9.6. Simply Ctrl+Shift+P and search for Python: Select Interpreter