admin管理员组文章数量:1130349
问题描述:pycocotools是什么?即python api tools of COCO。
但是使用pip install 时经常会有异常,但是安装失败
pip安装方法:
pip install pycocotools==2.0.0
or
pip install pycocotools-windows
但是,我经常会安装不成功,报以下错误:大概就是我缺一些依赖(windows OS下)
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
使用以下命令安装:
pip install pycocotools-windows -i https://pypi.tuna.tsinghua.edu/simple
但是安装其他包时依赖还是无法解决
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft
解决方案:
可以直接安装Microsoft C++ Build Tools,而不需要安装Visual Studio。
我们也可以去官网下载对应的文件(需要拥有一个微软的账号)
链接 Home - Visual Studio Subscriptions Portal,登录账号,点击进入下载页面
接下来,在下载页面搜索build tools,点击搜索之后找到左侧的Visual Studio 2015 update 3。
点击Visual Studio 2015 update 3后,下载对应的文件即可,这里需要将格式修改为DVD。
之后安装就可以了。
reference:https://zhuanlan.zhihu/p/471661231
问题描述:pycocotools是什么?即python api tools of COCO。
但是使用pip install 时经常会有异常,但是安装失败
pip安装方法:
pip install pycocotools==2.0.0
or
pip install pycocotools-windows
但是,我经常会安装不成功,报以下错误:大概就是我缺一些依赖(windows OS下)
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
使用以下命令安装:
pip install pycocotools-windows -i https://pypi.tuna.tsinghua.edu/simple
但是安装其他包时依赖还是无法解决
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft
解决方案:
可以直接安装Microsoft C++ Build Tools,而不需要安装Visual Studio。
我们也可以去官网下载对应的文件(需要拥有一个微软的账号)
链接 Home - Visual Studio Subscriptions Portal,登录账号,点击进入下载页面
接下来,在下载页面搜索build tools,点击搜索之后找到左侧的Visual Studio 2015 update 3。
点击Visual Studio 2015 update 3后,下载对应的文件即可,这里需要将格式修改为DVD。
之后安装就可以了。
reference:https://zhuanlan.zhihu/p/471661231
本文标签: errorbuildWindowspycocotoolsinstall
版权声明:本文标题:windows 安装pycocotools:ERROR: Could not build wheels for pycocotools, which is required to install py 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754822169a2730752.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论