Opencv-python caffe

Hello all,
I am trying to build caffe on freedom-U540 board, installing the opencv-python, with all dependencies, when i am building the opencv-python struck with error log is attached below
and find out the link of opencv-python, can anybody help me out from this error please.

Steps i followed
pip install numpy
python2.7 setup.py install

File “/usr/lib/python2.7/site-packages/pip/_internal/vcs/versioncontrol.py”, line 632, in run_command
log_failed_cmd=log_failed_cmd)
File “/usr/lib/python2.7/site-packages/pip/_internal/utils/subprocess.py”, line 242, in call_subprocess
raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: git submodule sync Check the logs for full command output.

The error message is
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: git submodule sync Check the logs for full command output.
Did you look at the logs for the full command output? Did you try running git by hand?

This doesn’t look like a u540 or RISC-V specific problem, it looks like an ordinary linux issue. You could try asking in a opencv-python issue.