這幾天再跑mscoco的資料集,安裝pycocotools做驗證的時候一直遇到問題

紀錄一下解決方式

常見錯誤1.

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

 

常見錯誤2.

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

 

解決方式:

C:\Program Files (x86)\Windows Kits\10\bin\x64  加到path

後去Windows Kits裡面找到缺少的cl.exe或其他扔到 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin 


arrow
arrow
    創作者介紹
    創作者 低階ㄇㄋ 的頭像
    低階ㄇㄋ

    蟲匯聚之所

    低階ㄇㄋ 發表在 痞客邦 留言(0) 人氣()