opencv-python 的 Building Wheel 在构建 docker 镜像时会持续运行很长时间。可以做些什么来使其运行得更快?
运行 pip install opencv-python
Collecting opencv-python
Downloading opencv-python-4.6.0.66.tar.gz (90.3 MB)
Run Code Online (Sandbox Code Playgroud)
...
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: opencv-python, numpy
Building wheel for opencv-python (pyproject.toml): started
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Building wheel for opencv-python (pyproject.toml): still running...
Run Code Online (Sandbox Code Playgroud)
Yun*_*enk 15
我在低级别机器上也遇到了同样的问题。实际上需要很长时间,但后端没有任何问题。运行安装命令,--verbose以便您可以看到后面实际发生的情况。
当我运行代码时:
sudo pip install opencv-python --verbose
Run Code Online (Sandbox Code Playgroud)
我能够跟踪该过程并检查安装百分比。所以 30 分钟后,它仍然完成了 30% - :) 一台非常低的机器,但我们有时需要安装它 - 经过一点耐心,2 小时后它完成了,所以无论谁遇到这个错误,这都可能对他们有帮助。
| 归档时间: |
|
| 查看次数: |
14607 次 |
| 最近记录: |