1.问题描述

c:\anaconda3\include\pyconfig.h(203): fatal error C1083: Cannot open include file: ‘basetsd.h’: No such file or directory
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit status 2
具体报错信息如下图所示:
Windows下安装 pycocotools遇到问题:VC\\BIN\\x86_amd64\\cl.exe‘ failed with exit status 2

2.解决方法

下载windows 10 SDK并安装
地址:https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/
.
安装后重新执行:
Windows下安装 pycocotools遇到问题:VC\\BIN\\x86_amd64\\cl.exe‘ failed with exit status 2
成功执行:
python setup.py build_ext --inplace
python setup.py build_ext install
进入 Python shell,输入以下命令,验证 pycocotools 是否安装成功:
Windows下安装 pycocotools遇到问题:VC\\BIN\\x86_amd64\\cl.exe‘ failed with exit status 2

相关文章:

  • 2022-01-03
  • 2021-10-07
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-11-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-08-28
  • 2021-11-05
  • 2021-08-25
  • 2022-12-23
相关资源
相似解决方案