opencv pycocotools的构建轮失败

lh80um4z  于 2023-10-24  发布在  其他
关注(0)|答案(2)|浏览(129)

我正在探索YOLO-NAS的目标检测,其中我必须安装超梯度模块,它给出了这样的错误
我输入下载的命令是!pip install super-gradients==3.1.0
其给出:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycocotools ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
Building wheel for pycocotools (pyproject.toml): started Building wheel for pycocotools (pyproject.toml): finished with status 'error' Failed to build pycocotools

zyfwsgd6

zyfwsgd61#

我在Colab笔记本上安装它时也遇到了同样的错误。我试过这个:

!pip install super-gradients

回答:

-> Collecting super-gradients
Downloading super_gradients-3.2.0

成功了!

lokaqttq

lokaqttq2#

这是所有关于版本错误python版本:
3.7>有效版本< 3.10
超梯度版本
有效版本>= 3.2.0
如果您使用低于3.2.0的超级渐变版本,'pycocotools'的Building wheel将失败
如果您使用Python版本高于3.9,则'onnx-tools'的Building wheel将失败

相关问题