安装 python-opencv

最近要用到python中的opencv。

发现有的同行是这样导入的。

import cv2

心想这也太简单了吧。直接:

pip install cv2

没想到

Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2

后来发现原来是得这样安装:

首先得安装numpy。

之后再

pip3 install opencv-python

猜你喜欢

转载自www.cnblogs.com/djxf/p/12058624.html