想问该怎么解决这个错误,下面是运行的报错
pi:~/darkflow-master $ sudo python3 predict.py
Traceback (most recent call last):
File "predict.py", line 4, in <module>
from darkflow.net.build import TFNet
File "/home/pi/darkflow-master/darkflow/net/build.py", line 3, in <module>
from . import help
File "/home/pi/darkflow-master/darkflow/net/help.py", line 9, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'
其他的程序是可以正常运行不报错的
安装下这个库试试:
pip install opencv-python
这个是重新安装opencv吗,但我应该有opecv了,版本是4.3.0