使用pip install直接安装时下载速度慢,且容易超时(Read timed out)
pip install opencv-python
错误如下:
ERROR: Exception:
socket.timeout: The read operation timed out
(原始是因为直接下载会被墙)
解决方案是换用国内镜像清华源:
pip install https://pypi.tuna.tsinghua.edu.cn/simple
此时如果不出意外则会提示安装成功
Successfully installed numpy xxxxx
如果还继续出现如下之类错误:<

在使用pip安装opencv-python时,由于直接下载可能被墙导致速度慢和超时。为解决问题,可以切换到国内的清华源。然而,即使这样,仍可能出现'Cannot unpack file'和'cannot detect archive format'的错误。解决方法是多次尝试使用pip安装,最终应该能成功安装numpy和opencv-python。

1844

被折叠的 条评论
为什么被折叠?



