Skip to content

numpy.core.multiarray failed to import #197

@risafnazaruddin06011990

Description

Iam using 3.9.2 python, a try run the camera with : python3 TFLite_detection_webcam.py --modeldir=

And the error:

Traceback (most recent call last):
File "/home/raspberrypi/tflite1/tflite1-env/lib/python3.9/site-packages/numpy/init.py", line 119, in
raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
Traceback (most recent call last):
File "/home/raspberrypi/tflite1/TFLite_detection_webcam.py", line 19, in
import cv2
File "/home/raspberrypi/tflite1/tflite1-env/lib/python3.9/site-packages/cv2/init.py", line 5, in
from .cv2 import *
ImportError: numpy.core.multiarray failed to import

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions