运行:
scripts\build_win.cmd
1.提示下载错误:
INFO: Downloading dependencies
Traceback (most recent call last):
File "c:\caffe\scripts\\download_prebuilt_dependencies.py", line 12, in <module>
from download_model_binary import reporthook
File "c:\caffe\scripts\download_model_binary.py", line 5, in <module>
import yaml
ImportError: No module named yaml
ERROR: Downloading dependencies failed
解决办法:
https://pyyaml.org/wiki/PyYAML 下载合适版本PyYAML
pip install PyYAML‑xxxxxxxxxxxxxxx
即可!
2. 提示下载错误:
IOError: [Errno socket error] EOF occurred in violation of protocol (_ssl.c:726)
ERROR: Downloading dependencies failed
关闭VPN即可!
3.编译后会出现错误:
error: Error: could not load cache
删除CMakeCache.txt、cmake_install.cmake重新编译即可!