Closed qian0jiang closed 1 year ago
看下 /usr/bin/env python3
以及 which repo
看下
/usr/bin/env python3
以及which repo
/usr/bin/env python3 Python 3.6.9 (default, Jun 29 2022, 11:45:57) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
repo init命令: repo init -u https://gerrit.openfyde.cn/chromium.googlesource.com/chromiumos/manifest -b release-R102-14695.B --repo-url=https://gerrit.openfyde.cn/chromium.googlesource.com/external/repo
看下which repo
和 repo --version
which repo /snap/bin/repo
~/r102$ repo --version File "/home/jiang/r102/.repo/repo/main.py", line 79 file=sys.stderr) ^ SyntaxError: invalid syntax 是我安装的repo不对么
是的,你按照教程上的用 https://github.com/openFyde/getting-started#install-google-depot_tools 的repo 应该就可以了。
好的,非常感谢
按照 getting-started 文档一步步来,到repo init这一步的时候报错了: File "/home/jiang/r102/.repo/repo/main.py", line 79 file=sys.stderr) 我看了下报错的位置: if sys.version_info.major < 3: print('repo: error: Python 2 is no longer supported; ' 'Please upgrade to Python {}.{}+.'.format(*MIN_PYTHON_VERSION_SOFT), file=sys.stderr) sys.exit(1) 按理说我安装的是python3,应该不会进入这个if才对,是我安装的python3环境不对么? python3 -V Python 3.6.9