一,通过pip安装pycocotools时遇到这个问题,ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly,网上搜了好多方法也没有解决。

 ,于是根据错误里面的提示, 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/

下载Visual,在visual安装时要勾选c++和python。

 ,安装好visual后再次运行pip install pycocotools,成功安装。

                                                                                                                                 时间2022.7.14

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐