Windows上安裝 pycocotools 失?。篍RROR: Failed building wheel for pycocotools
.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for pycocotools
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly
什么是pycocotools: pycocotools是python api tools of COCO。COCO是一個(gè)大型的圖像數(shù)據(jù)集,pycocotoolos api有助于在COCO中加載、解析和可視化annotations. 問題:在Windows上, 用pip install pycocotools命令安裝pycocotools失敗
原因:pycocotools的維護(hù)者不再提供Windows平臺(tái)的支持。
解決辦法如下:
Windows:pip install pycocotools-windows
祝順利,我踩過的坑,幫你們避坑
①提示缺少“Microsoft visual c++ 14.0”,那么會(huì)提示你下載相關(guān)的工具,可以自己官網(wǎng)下載,這里分享給大家直接的下載鏈接鏈接:
Microsoft Visual C++ 14.0 is required 的終極解決辦法
一 、到微軟官網(wǎng)下載visual studio2019如圖
https://visualstudio.microsoft.com/zh-hans/downloads/
先前條件:
安裝vs studio2019 “必須是2019,2022我試過不行”并且要在安裝的時(shí)候勾選C++桌面編譯條件
二 、下載完安裝,安裝完后選擇單個(gè)組件如圖
然后在選c++14如圖
安裝完之后,就可以文章來源:http://www.zghlxwxcb.cn/news/detail-445670.html
cd mmdetection # 進(jìn)入mmdetection目錄
pip install -r requirements/build.txt
pip install -v -e .
安裝成功
完成后設(shè)置顯卡cuda算力,我的是3060laptop,算力是8.6文章來源地址http://www.zghlxwxcb.cn/news/detail-445670.html
到了這里,關(guān)于Windows上安裝 pycocotools 失敗的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!