需要有个一个好的通用网络是前提,大家都懂的。
1. 安装depot_tools
(1)Clone depot_tools 代码(本地环境放到了路径/usr/src/)
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
(2)设置环境变量
export PATH=/usr/src/depot_tools:$PATH
仅仅设置PATH在我本地的环境下面还是不可以执行fetch等脚本,经过分析脚本,我又设置了其他环境变量:
export GCLIENT_PY3=0
export VPYTHON_BYPASS="manually managed python not supported by chrome operations"