The install is successful. I receive this error when trying to import.
TypeError: 'numpy._DTypeMeta' object is not subscriptable

I have tried higher and lower versions of numpy (1.22.0,1.23.0,1.24.0,1.25.0,1.25.2). I installed mediapipe via pypi as well as a downloaded whl ( mediapipe-0.10.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl) from pypi
Versions
numpy 1.21.5
mediapipe 0.10.3
Python 3.10.6
These questions are similar but not the answer.
Importing xarray raises not subscriptable issue
Cannot import mediapipe in Jupyter notebook
How to prevent error message when importing import cv2?
I had this error while importing CV2. For this, use 1.20.0 version of numpy.
pip install numpy==1.20.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With