我在pycharm中下载opencv-contrib-python时未下载成功,则出现了以下报错
点开details如下图
最后一句You should consider upgrading via the 'python -m pip install --upgrade pip' command.意味你可以用"python -m pip install --upgrade pip"命令来更新
如上图更新到pip-20.2.4版本再试一下
然鹅,安装了几秒钟又报错了
让我i看看报错原因
显示ERROR: Could not find a version that satisfies the requirement opencvz-contrib-python (from versions: none)
有点死马当活马医,在命令行pip install opencv-contrib-python
显示需要4个多小时,哈哈哈,过了一会,立马报错Read timed out
现学现卖,遇到Read timed out报错,参考我的这篇博客https://blog.csdn.net/qq_41897154/article/details/109229027,利用命令“pip --default-timeout=1000 install -U opencv-contrib-python”
40M的包下起来原来是如此的慢,等着吧。。。。(20:20左右开始下载的)
下到百分之15左右半路阵亡,
我考虑把时间延长,试试, pip --default-timeout=100000 install -U opencv-contrib-python,这个还是会报错的。
pip install 模块名 -i https://pypi.tuna.tsinghua.edu.cn/simple
例如:
pip install pytesseract -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple
https://blog.csdn.net/qq_38523616/article/details/100558141
https://blog.csdn.net/lingchuxiao/article/details/107084283