pycocotools 2.0.3 安装失败:gcc: error: ../common/maskApi.c: No such file or directory

错误信息

      ......
      gcc: error: ../common/maskApi.c: No such file or directory
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycocotools
  Running setup.py clean for pycocotools
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

安装 pycocotools 2.0.3 版本时出现如上错误,而安装 2.0.6 版本时不会有如上错误。

解决方法
安装较低版本的cpython:

pip install cython==0.29.36

然后再安装pycocotools。

  • 31
    点赞
  • 28
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
根据提供的引用内容,您的问题似乎与git的凭据助手配置有关。根据引用\[1\]和引用\[2\],您可以通过运行git config命令来设置和配置凭据助手。例如,您可以使用以下命令来设置凭据助手并指定代理服务器的属性: git config --global credential.helper '!java -Ddebug=false -Dhttp.proxyHost=192.168.0.117 -Dhttp.proxyPort=8123 -Dhttps.proxyHost=192.168.0.117 -Dhttps.proxyPort=8123 -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar' 如果您想删除或卸载凭据助手,您可以使用git config命令并将credential.helper配置设置为空。例如,您可以运行以下命令: git config --global --unset credential.helper 如果您想启用备用凭据存储,您可以使用git config命令并将credential.helper配置设置为相应的值。例如,您可以运行以下命令: git config --global credential.helper '!java -Ddebug=false -Djava.net.useSystemProxies=true -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar' 最后,如果您想检索credential.helper配置的值,您可以使用git config命令并指定相应的选项。例如,您可以运行以下命令: git config --global --get credential.helper 希望这些信息对您有所帮助。如果您有任何其他问题,请随时提问。 #### 引用[.reference_title] - *1* *2* *3* [解决:fatal: authentication failed for https](https://blog.csdn.net/weixin_30329623/article/details/98142192)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值