解决pycharm下载opencv-python

问题描述

在pycharm下载opencv-python的时候出现 Read timed out.超时的现象

 pip install opencv-python

解决pycharm下载opencv-python_第1张图片
那我们换成清华镜源

pip install https://pypi.tuna.tsinghua.edu.cn/simple

在这里插入图片描述

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn opencv-python

好了
import cv2没有报错了
在这里插入图片描述

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