android - CYGWIN 中的 repo 出现类似 "Python can not open file ' user/bin/repo' 的错误

标签 android cygwin repository

我的电脑上装有 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/

相关文章:

android - 从 Android 构建中排除 drawable-large 资源

android - 将 repo 分支推送到本地 AOSP 镜像

git - AOSP repo 工具具体为每个 git repo checkout 什么?

Android 通过 AsyncTask 下载文件不适用于 3G 仅适用于 Wi-Fi

安卓 : How to append String after SQLite Funciton?

android - 有没有办法让 getSystemService() 每次在 Android 中返回一个全新的实例?

cygwin - 安装后无法打开cygwin终端

c - 如何在 C 中完成自动数组的排序?

unix - Cygwin错误消息—二进制文件不可执行

repository - Composer 需要特定的存储库