windows安裝pycocotools錯誤:cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'


在安裝基於keras、tensorflow實現的Mark RCNN(https://github.com/matterport/Mask_RCNN),要運行其中的demo.ipynb時,需安裝pycocotools。

在windows下可能會出現以下錯誤:

 

cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for pycocotools

 

解決辦法:

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

即可安裝成功。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM