Which made little sense to me. My problem is that my editor had silently converted the script from Unix LF to Windows CR/LF line-termination. A rather unfortunate upshot of this is that "#!/usr/bin/env python" actually became "#!/usr/bin/env python\015" where \015 is the invisible CR character... /usr/bin/env was, then, unable to find a command "python\015" - hence the file-not-found error.
Converting the script to Unix line-ending convention solved my problem... but only after a few minutes' head-scratching.
This answer for android build system error
对于 Python 3
如果收到“/usr/bin/env‘ python’no such file or directory”错误消息,请使用下列解决方案之一:
如果你的 Ubuntu 20.04.2 LTS 是一个新安装的(相对于升级的) Linux 版本:
sudo ln -s /usr/bin/python3 /usr/bin/python
f using Git version 2.19 or greater, you can specify --partial-clone when performing repo init. This makes use of Git's partial clone capability to only download Git objects when needed, instead of downloading everything. Because using partial clones means that many operations must communicate with the server, use the following if you're a developer and you're using a network with low latency:
May 2022: For anyone who just updated to 蒙特雷12.3 it appears the update replaces python with python3. Downloading 巨蟒 fixes the issues in Xcode and 饭桶 command line. Be sure to read the two comments below.