Python 3.10.9 died after tried to import MediaPipe library on VS code

Recently, I was trying to run all of my work on MacOS, and as usual, I imported Python's library and ran it, but when I wanted to import one of the libraries from Google called "MediaPipe Hands", I faced a problem in which my kernel would die immediately and I had to restart the kernel again and again.

Here is the error log:

[I 13:34:24.126 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports

error 13:34:24.133: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done

I don't know how to fix it, or should I change my Python version?

Thank you!

Python 3.10.9 died after tried to import MediaPipe library on VS code
 
 
Q