From 294277115884daaa09f1e8effd855f7c4c34e6fb Mon Sep 17 00:00:00 2001 From: liyan Date: Wed, 8 Jun 2022 02:15:00 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96reop=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4=20Signed-off-by:=20li-yan3?= =?UTF-8?q?39=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quick-start/quickstart-lite-env-setup.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/zh-cn/device-dev/quick-start/quickstart-lite-env-setup.md b/zh-cn/device-dev/quick-start/quickstart-lite-env-setup.md index e30cfada49..dc9990c857 100644 --- a/zh-cn/device-dev/quick-start/quickstart-lite-env-setup.md +++ b/zh-cn/device-dev/quick-start/quickstart-lite-env-setup.md @@ -262,13 +262,24 @@ ``` 5. 执行如下命令安装码云repo工具。 - + + 下述命令中的安装路径以"~/bin"为例,请用户自行创建所需目录。 + ``` - curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中 - chmod a+x /usr/local/bin/repo + mkdir ~/bin + curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o ~/bin/repo + chmod a+x ~/bin/repo pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests ``` +6. 将repo添加到环境变量。 + + ``` + vim ~/.bashrc # 编辑环境变量 + export PATH=~/bin:$PATH # 在环境变量的最后添加一行repo路径信息 + source ~/.bashrc # 应用环境变量 + ``` + ### 获取方式 -- GitLab