cygwin +windows 下载android资源

发布于 2024-12-23 15:47:51 字数 891 浏览 1 评论 0原文

我在 Windows 上使用 cygwin 下载 Android 资源;http://source.android.com/source/downloading.html 但是当我运行 repo init -u https://android.googlesource.com/platform/ manifest -b android-4.0.1_r1 它给了我:

File "/opt/android/bin/repo", line 595, in 
    main(sys.argv[1:])
  File "/opt/android/bin/repo", line 562, in main
    _Init(args)
  File "/opt/android/bin/repo", line 181, in _Init
    _CheckGitVersion()
  File "/opt/android/bin/repo", line 210, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

编辑: 原始提问者留下了以下内容作为答案:

我解决了它:我的 cygwin 没有下载 git,所以我下载了 git在cygwin,一切都好

I used cygwin at windows to download android resource as ;http://source.android.com/source/downloading.html but when i run the repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 it give me:

File "/opt/android/bin/repo", line 595, in 
    main(sys.argv[1:])
  File "/opt/android/bin/repo", line 562, in main
    _Init(args)
  File "/opt/android/bin/repo", line 181, in _Init
    _CheckGitVersion()
  File "/opt/android/bin/repo", line 210, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

EDIT: The original questioner left the following as an answer:

I solved it: my cygwin did not download git, so I downloaded git in cygwin, all is ok

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

意犹 2024-12-30 15:47:51

isolveit,因为我的cygwin没有下载git,所以我在cygwin中下载,一切正常

isolveit,because my cygwin not download git,so i download in the cygwin,all is ok

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文