[ 4/11] RUN pip install supervision: 40.30 File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 560, in read 40.30 with self._error_catcher(): 40.30 File "/opt/conda/lib/python3.10/contextlib.py", line 153, in __exit__ 40.30 self.gen.throw(typ, value, traceback) 40.30 File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher 40.30 raise ReadTimeoutError(self._pool, None, "Read timed out.") 40.30 pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 41.59 41.59 [notice] A new release of pip is available: 23.1.2 -> 23.2 41.59 [notice] To update, run: pip install --upgrade pip ------ Dockerfile.processor:24 -------------------- 22 | WORKDIR /opt/nuclio 23 | 24 | >>> RUN pip install supervision 25 | 26 | WORKDIR /opt/nuclio -------------------- ERROR: failed to solve: process "/bin/sh -c pip install supervision" did not complete successfully: exit code: 2
时间: 2024-04-21 10:24:29 浏览: 258
这个错误是由于在执行命令 "pip install supervision" 时出现了问题。错误信息中提到了 HTTPS 连接超时,导致无法从 `files.pythonhosted.org` 下载所需的包。
这个问题可能是由于网络连接不稳定或者下载源的问题引起的。你可以尝试以下解决方法:
1. 检查你的网络连接是否正常,确保能够访问互联网。
2. 可以尝试更改下载源为国内源或者其他稳定的源,例如使用清华大学的镜像源,可以在命令行中执行以下命令进行更改:
```shell
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
```
这将把下载源更改为清华大学的镜像源,可能能够解决由于网络原因导致的下载超时问题。
***
阅读全文