1. 程式人生 > >error: Unable to find vcvarsall.bat

error: Unable to find vcvarsall.bat

error: Unable to find vcvarsall.bat

faster_rcnn進行訓練編譯時,報這個錯誤

faster_rcnn 2015,

專案地址:https://github.com/dBeker/Faster-RCNN-TensorFlow-Python3.5

python版本:3.5

執行這倆命令時報錯:

Run python setup.py build_ext --inplace

Run python setup.py build_ext install

 

解決方法:

安裝Python for Visual Studio 

,但這個軟體最高只支援VS2015,我已安裝VS2017,打死都不安裝倆VS

參考:https://www.cnblogs.com/yyds/p/7065637.html

 

VS2017 下,則在visual studio installer中安裝python模組,如下圖:

就能順利編譯了,氣到吐血!!!!