我的电脑上装有 Windows 7,我只想按照此处的步骤查看 Android 源代码:http://source.android.com/source/downloading.html
我尝试了 CYGWIN,并完全按照教程中的说明操作。 但在这里没有运气:
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
CYGWIN bash 告诉我这个:
C:\Python27\python.exe: can't open file '/home/qhuang/bin/repo': [Errno 2] No such file or directory
实际上这个文件存在,它可能需要一个前缀:
C:\cygwin\
在 Windows 中。
非常感谢任何人的帮助!
最佳答案
帮助后来遇到这个问题的人(像我一样)。这在 Cygwin 中安装 python 后为我解决了(我在 Windows 中安装了 python,但没有安装 Cygwin)。您可以检查它是否与“which python”一起安装,如果它作为 C:/blah/python 返回,那么您没有在 Cygwin 中安装它;你想让/usr/bin/python 回来让你知道它是内部 Cygwin 的。
关于android - CYGWIN 中的 repo 出现类似 "Python can not open file ' user/bin/repo' 的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11446495/