+
50
-

ModuleNotFoundError: No module named 'cv2'

ModuleNotFoundError: No module named 'cv2'

python运行出错

#!/usr/local/python3/bin/python3
# -*- coding: utf-8 -*
import cv2
import numpy as np
import dlib

img = cv2.imread("bradley_cooper.jpg")
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
mask = np.zeros_like(img_gray)


高手回复

+
1
-

pip3 install opencv-python

by ppzhuzhu
我知道答案,我要回答