ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based....

翻译:抱歉,这个错误是由于无法为"pycocotools"构建所需的wheels导致的,这会影响基于"pyproject.toml"的项目安装。

目录

一、安装pycocotools

二、下载Microsoft Visual C++ Build Tools

三、 在当前的虚拟环境中安装git 

四、继续安装pycocotools包



一、安装pycocotools直接在终端中执行pip install pycocotools_windows回出现以下报错

因为pycocotools不支持windowns系统支持的是linux系统

二、下载Microsoft Visual C++ Build Tools

如果没有报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的错误可以直接进行下一步

三、 在当前的虚拟环境中安装git 

conda install git

四、继续安装pycocotools包

pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools"&"subdirectory=PythonAPI

  • 5
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用中的报错信息显示,无法为pysptk构建wheel,而这是安装pyproject.toml-based项目所需要的。这可能是因为缺少Microsoft Visual C 14.0或更高版本。您可以通过访问"Microsoft C Build Tools"网址https://visualstudio.microsoft.com/visual-cpp-build-tools/ 来获取它。建议您安装所需的Microsoft Visual C版本后再次尝试安装pysptk。 所以,对于问题中的ERROR: Could not build wheels for pysptk, which is required to install pyproject.toml-based projects,请您首先确保已经安装了Microsoft Visual C 14.0或更高版本,并且按照引用中的链接获取必要的Microsoft C Build Tools。安装完成后,再次尝试安装pysptk,应该就可以解决该问题了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [ERROR: Could not build wheels for pysptk, which is required to install pyproject.toml-based projects](https://blog.csdn.net/ooooooobh/article/details/131051420)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [ERROR: Could not build wheels for python-ldap, which is required to install pyproject.toml-base proj](https://blog.csdn.net/weixin_38708145/article/details/128748294)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值