PyCharm导入cv2失败

处理图像时用到cv2,但import cv2时总显示

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

解决方案:

终端输入

pip install opencv-python

再import cv2即可成功

你可能感兴趣的:(pycharm,python,opencv)