首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >化茧工具建造轮(pyproject.toml)没有成功运行。

化茧工具建造轮(pyproject.toml)没有成功运行。
EN

Stack Overflow用户
提问于 2022-11-04 03:56:40
回答 1查看 421关注 0票数 0

我试图克隆YOLOv6回购和安装的要求。然后出现错误-

代码语言:javascript
复制
 Building wheel for pycocotools (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pycocotools (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-37
      creating build\lib.win-amd64-cpython-37\pycocotools
      copying pycocotools\coco.py -> build\lib.win-amd64-cpython-37\pycocotools
      copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-37\pycocotools
      copying pycocotools\mask.py -> build\lib.win-amd64-cpython-37\pycocotools
      copying pycocotools\__init__.py -> build\lib.win-amd64-cpython-37\pycocotools
      running build_ext
      cythoning pycocotools/_mask.pyx to pycocotools\_mask.c
      building 'pycocotools._mask' extension
      C:\Users\nahid\AppData\Local\Temp\pip-build-env-0ow5jkfb\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\nahid\AppData\Local\Temp\pip-install-i_mf6xtz\pycocotools_c4df8c08be154817a667604298ec6fe3\pycocotools\_mask.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      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
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

我试图克隆YOLOv6回购和安装的要求。现在我使用python 3.9.7,pip 22.3。requirements.txt -‘

代码语言:javascript
复制
# pip install -r requirements.txt
# python3.8 environment

torch>=1.8.0
torchvision>=0.9.0
numpy>=1.18.5
opencv-python>=4.1.2
PyYAML>=5.3.1
scipy>=1.4.1
tqdm>=4.41.0
addict>=2.4.0
tensorboard>=2.7.0
pycocotools>=2.0
onnx>=1.10.0  # ONNX export
onnx-simplifier>=0.3.6 # ONNX simplifier
thop  # FLOPs computation
# pytorch_quantization>=2.1.1

`

EN

回答 1

Stack Overflow用户

发布于 2022-11-04 08:50:17

只需读取错误内部:

代码语言:javascript
复制
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/

您需要一个编译器,因为您试图在Windows中编译一个库!在https://visualstudio.microsoft.com/visual-cpp-build-tools/中找到适当的工具,安装它们,并尝试使用一个新的终端安装。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74312019

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档