Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install -r requirements.txt 的opencv-python-headless的时候一直出现Readtimeouterror #470

Open
heynewyeah opened this issue Jul 16, 2024 · 1 comment
Assignees

Comments

@heynewyeah
Copy link

具体报错:raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

按照网上使用pip install --default-timeout=100 future也不行

@heynewyeah
Copy link
Author

解决啦:就是在原来的安装命令后面添加一个国内镜像源
如:
之前:pip install opencv-python
修改成:pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple/

其他国内镜像源如下:

清华源: https://pypi.tuna.tsinghua.edu.cn/simple/

阿里云: http://mirrors.aliyun.com/pypi/simple/

中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban):http://pypi.douban.com/simple/

清华大学: https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学: http://pypi.mirrors.ustc.edu.cn/simple/

原文链接:https://blog.csdn.net/zhangvalue/article/details/104271094

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants